Skip to main content

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 expired
string
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)

Returned when the token is:
  • Invalid or malformed
  • Expired
  • Revoked
  • Not found in database

Example Requests

Use Cases

Verify that an access token is still valid before processing a request
Inspect token metadata to debug authorization issues
Log token usage with agent and client information
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