Account
This endpoint fetches logged-in user’s info.
HTTP Request
Section titled “HTTP Request”GET https://adelion.com/api/auth/accountTo get logged-in user’s info, just call endpoint without parameters.
Response
Section titled “Response”{ "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" }}Failure
Section titled “Failure”{ "Status": "Error", "Error": "[error description]"}| Error Code | Meaning |
|---|---|
| 401 | Unauthorized — Your access token is invalid. |
| 500 | Internal Server Error — We had a problem with our server. Try again later. |