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>"
}Introspect an OAuth access token to check its validity and metadata
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>"
}OAuth client credentials (client_id:client_secret) via HTTP Basic Auth, or client credentials in request body for public clients
The token to introspect
Was this page helpful?