Endpoint
Request
client_id as the username and client_secret as the password.
Response — active token
sub field is the delegating user’s ID (the human who authorized the token), not an agent identifier.
Response — inactive token
Testing in the developer console
From your application’s detail page (Overview tab), use the Test introspection panel. Paste ahasp_agent_ token and click Test token to see the introspection response live. This calls a server-side proxy that authenticates with your application’s credentials automatically — no manual auth setup needed.
Caching considerations
Introspection results may be cached for a short period. For latency-sensitive paths, cache the{ active, exp, authorization_details } tuple until exp - 60s so you make at most one introspection call per token per request session.
Do not cache active: false responses for more than a few seconds — a token may become inactive between your cache entry and the next use.