Skip to main content
GET
/
users
/
current
Get Current User
curl --request GET \
  --url https://api.example.com/users/current \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "username": "<string>",
  "email": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "phone": "<string>",
  "description": "<string>",
  "role": "admin",
  "is_remote_user": false
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Successful Response

id
string
required
username
string
required
email
string
required
first_name
string | null
last_name
string | null
phone
string | null
description
string | null
role
enum<string> | null
Available options:
admin,
viewer,
editor,
remote_user,
partner
is_remote_user
boolean
default:false