Introspect OAuth token
Introspects an access/refresh token
POST
/{apiBasePath}/oauth/introspectPath parameters
apiBasePathstringrequiredIts value depends on the apiBasePath set by the user
Request body
application/jsontokenstringrequiredResponses
200Information about the token
One of:
object
activebooleanrequiredWhether the token is active or not
token_typestringThe type of the token
token_usestringThe use of the token
subuserIdUnique identifier for a user
emailstringThe email of the user
email_verifiedbooleanWhether the email is verified
emailsstring[]phoneNumberstringThe phoneNumber of the user
phoneNumber_verifiedbooleanWhether the phoneNumber is verified
phoneNumbersstring[]rolesstring[]permissionsstring[]generalErrorResponse
statusstringError status code
Allowed:
GENERAL_ERRORmessagestringError message
404Resource not found error
string500Internal server error
stringTry it
Server
Parameters
Bodyapplication/json
Request
curl -X POST "/auth/oauth/introspect" \
-H "Content-Type: application/json" \
-d '{
"token": "string"
}'const response = await fetch("/auth/oauth/introspect", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"token": "string"
})
});import requests
response = requests.post(
"/auth/oauth/introspect",
headers={
"Content-Type": "application/json"
},
json={
"token": "string"
},
)Response
{
"active": true,
"token_type": "Bearer",
"token_use": "access_token",
"sub": "fa7a0841-b533-4478-95533-0fde890c3483",
"email": "[email protected]",
"email_verified": true,
"emails": [
"[email protected]"
],
"phoneNumber": "0036701234567",
"phoneNumber_verified": true,
"phoneNumbers": [
"0036701234567"
],
"roles": [
"admin"
],
"permissions": [
"user:create"
]
}"Not Found""Internal Error"