Skip to content
Get Current User Details

Get Current User Details

Get profile details of the user associated with the active access token.

Endpoint

/api/v1/users/current

Method

GET

Headers

HeaderRequiredDescription
AuthorizationYesBearer access token: Bearer <access_token>

Query Parameters

ParameterTypeRequiredDescription
include_permissionsbooleanNoInclude user permissions (default: false)

Examples

curl --request GET \
  --url https://auth.roled.id/api/v1/users/current?include_permissions=true \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJo...'

Error Codes

CodeHTTP StatusDescription
invalid_authorization_token401Missing or invalid authorization token
user_not_found404User not found
system_error500Internal server error