Skip to content

Get Current User

GET /api/v1/user

GET /maas/api/v1/user

Returns information about the currently authenticated user

Authorization

Responses

Status Description Response body
200 OK

User information

object

application/json

400 Bad Request

Bad Request (missing identity)

None
401 Unauthorized

Unauthorized

None
500 Internal Server Error

Internal Server Error

None

200 OK response body

Property Type Required Description
data User No

Example request

curl -X GET "/maas/api/v1/user" \
  -H "Authorization: Bearer $TOKEN"

Example response

200 OK, application/json

{
  "data": {
    "userId": "string",
    "clusterAdmin": true
  }
}