Skip to main content
GET
/
auth
/
me
Get data of authenticated user.
curl --request GET \
  --url https://api.example.com/auth/me \
  --header 'Authorization: Bearer <token>'
{
  "id": 123,
  "username": "<string>",
  "avatar": "<string>",
  "role": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Response

200 - application/json

Successful Response

Data about a user.

id
integer
required

Unique Identifier of a user

username
string
required
avatar
string
required
role
string
required