Skip to main content
POST
/
oauth
/
introspect
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx();

const response = await client.oauth.introspect({ token: 'token' });

console.log(response.client_id);
{
  "active": true,
  "scope": "<string>",
  "client_id": "<string>",
  "exp": 123,
  "iat": 123,
  "iss": "<string>",
  "aud": "<string>"
}

Authorizations

Authorization
string
header
required

OAuth client credentials (client_id:client_secret) via HTTP Basic Auth, or client credentials in request body for public clients

Body

token
string
required

The token to introspect

Response

Introspection response

active
boolean
required

Whether the token is active

scope
string

Space-separated list of scopes

client_id
string

Client identifier

exp
integer

Expiration timestamp

iat
integer

Issued at timestamp

iss
string

Issuer

aud
string

Audience