Introspect OAuth2 Token
POST
/appid-{appId}/recipe/oauth/introspectAuthorization
api-keyAPI key · headerrequiredThe core service API token. If you are using a self-hosted core service and you have not generated a token, you can omit the header.
Header parameters
cdi-versionstringX.Y of the X.Y.Z CDI version.
Request body
application/jsontokenstringrequiredResponses
200OAuth2 Token Introspection Result
One of:
object
statusstatusOKAllowed:
OKactivebooleaniatintegerexpintegerclient_idstringissstringjtistringnbfintegerscpstring[]substringsttintegersessionHandlestringrsubstringtIdstringgidstringtoken_typestringtoken_usestringoauthError
statusstringrequiredAllowed:
OAUTH_ERRORerrorstringrequirederrorDescriptionstringrequiredstatusCodeintegerrequired400error code 400
string401error code 401
string402error code 402
string404error code 404
string500error code 500
stringTry it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "/appid-{appId}/recipe/oauth/introspect" \
-H "api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"token": "string"
}'const response = await fetch("/appid-{appId}/recipe/oauth/introspect", {
method: "POST",
headers: {
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"token": "string"
})
});import requests
response = requests.post(
"/appid-{appId}/recipe/oauth/introspect",
headers={
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"token": "string"
},
)Response
{
"status": "OK",
"active": true,
"iat": 1740992368,
"exp": 1740995969,
"client_id": "stcl_fed7cff0-cc6e-406e-b7a6-766148675a4a",
"iss": "http://localhost:3001/auth",
"jti": "1c229efe-c55b-44c1-98cf-9fa3a366502e",
"nbf": 1740992368,
"scp": [
"openid",
"offline_access"
],
"sub": "137d053d-0d69-4dea-8a19-06ddbdfa4f96",
"stt": 1,
"sessionHandle": "87bcc2d8-f159-4e10-a097-0898179a2d7d",
"rsub": "137d053d-0d69-4dea-8a19-06ddbdfa4f96",
"tId": "public",
"gid": "575b7130-d982-4945-be49-3ecde2a49eaa",
"token_type": "Bearer",
"token_use": "access_token"
}"string""Invalid API key""License Error""Not Found""Internal Error"