Skip to main content
POST
/
oauth2
/
introspect
Introspect a token
curl --request POST \
  --url https://api.provident.ae/v2/oauth2/introspect \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>"
}
'
{
  "active": true,
  "client_id": "<string>",
  "scope": "<string>",
  "exp": 123,
  "iat": 123,
  "username": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
token
string
required

The token to introspect

Response

200 - application/json
active
boolean
required

Boolean indicating whether the token is active

client_id
string
required

Client ID associated with the token

scope
string
required

Space-separated list of scopes

exp
number
required

Token expiration timestamp in seconds since epoch

iat
number
required

Token issuance timestamp in seconds since epoch

username
string

Username of the associated user, if any