Overview
The introspection endpoint validates an access token and returns its metadata. This follows RFC 7662 (OAuth 2.0 Token Introspection).Request Body
Content-Type:application/json
string
required
The access token to introspect
string
Your OAuth client ID for authentication
string
Your OAuth client secret for authentication
Response
Active Token (200 OK)
boolean
true if the token is valid and not expiredstring
Agent ID (subject)
string
OAuth client ID that issued the token
number
Expiration timestamp (Unix time)
number
Issued at timestamp (Unix time)
string
Space-separated list of scopes
string
AI model used by the agent
Inactive Token (200 OK)
- Invalid or malformed
- Expired
- Revoked
- Not found in database
Example Requests
Use Cases
Token Validation
Token Validation
Verify that an access token is still valid before processing a request
Debugging
Debugging
Inspect token metadata to debug authorization issues
Audit Logging
Audit Logging
Log token usage with agent and client information
Rate Limiting
Rate Limiting
Implement rate limiting based on agent ID or client ID
Introspection vs JWT Verification
You can verify tokens locally by validating the JWT signature, or use introspection:For most use cases, local JWT verification is sufficient. Use introspection if you need to check revocation status or don’t want to implement JWT validation.
Next Steps
Revoke Tokens
POST /revoke - Revoke access or refresh tokens
Token Management
Learn about token lifecycle and best practices
