Current User
Return the account the request is authenticated as.
| Endpoint | Method | Admin Required |
|---|---|---|
/api/v1/users/auth | POST | No |
Returns the account behind the credentials on the request - the user an access key belongs to, or the user of a console session token. Useful to check which credentials you are holding, and whether they carry admin privileges.
No request body.
Response
{
"id": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890",
"name": "John Doe",
"username": "john",
"isAdmin": false
}
Errors
| Status | Reason |
|---|---|
401 | Missing or invalid credentials |