When to Use Introspection
Use token introspection when you need to:- Confirm whether a token is still active
- Debug authentication or authorisation failures
- Verify scopes or audience during development or support workflows
Token Introspection Endpoint
Authentication Requirements
The introspection endpoint requires client authentication using HTTP Basic Authentication:client_idas the usernameclient_secretas the password
Making an Introspection Request
Send an HTTPPOST request with application/x-www-form-urlencoded parameters:
Introspection Response
The response is a JSON object containing token metadata.Introspection reflects current server state. A token may become inactive at any time due to revocation, expiry, or security events.
Example Request
Example Response
Related Reading
- OAuth 2.0 Overview - introduction to OAuth 2.0 for Pleo integrations
- API Keys Overview – alternative authentication method
- Tokens Overview – understanding access and refresh tokens
- Secure Token Storage – storing credentials securely
- Centralised Token Refresh – safe token refresh patterns
- Race Condition Prevention – avoid duplicate token refresh attempts
- OAuth 2.0 Setup Workflow Guide - Step-by-step guide to configure OAuth 2.0 for your integration