Skip to the documentation
API

Read your username

The username of the person, and whether they chose it.

GET/account/username

Runs the real call on your workspace.

GET /account/username

The username of the person, and whether they chose it.

Example

Needs account:read. chosen says whether the person chose it. One they never chose was made from their name the first time it was read, and they can replace it with one they choose at any time. A chosen one can change once a year.

curl
curl "$API/account/username" -H "$AUTH"
Response
{  "object": "username",  "username": "ada.lovelace",  "chosen": false}

Reference