Skip to content

Account

This endpoint fetches logged-in user’s info.

GET https://adelion.com/api/auth/account

To get logged-in user’s info, just call endpoint without parameters.

Success JSON
{
"Id": 1,
"TeamId": 1,
"Mail": "user@example.com",
"FirstName": "John",
"LastName": "Smith",
"Role": 0,
"Status": 0,
"StatusString": "Active",
"Team": {
"Id": 1,
"Name": "Team1",
"Country": "US",
"City": "[team_city]",
"ZipCode": "789012",
"Address": "456 Street",
"Phone": "+999999999"
}
}
Error JSON
{
"Status": "Error",
"Error": "[error description]"
}
Error CodeMeaning
401Unauthorized — Your access token is invalid.
500Internal Server Error — We had a problem with our server. Try again later.