Skip to content
Inspect Current Access Token

Inspect Current Access Token

Inspect the details of the Bearer access token provided in the request header, including project, client, user, role, and permission information.

Endpoint

/api/v1/tokens/current

Method

GET

Headers

HeaderRequiredDescription
AuthorizationYesBearer access token: Bearer <access_token>

Examples

curl --request GET \
  --url https://auth.roled.id/api/v1/tokens/current \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJo...'

Error Codes

CodeHTTP StatusDescription
invalid_authorization_token401Missing or invalid authorization token
system_error500Internal server error