Check out our upcoming events and meetups! View events →
Retrieve details about an OAuth consent token
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const oauth = await client.oauth.retrieve('consent_token');
console.log(oauth.data);{
"data": {
"client_id": "<string>",
"name": "<string>",
"requested_scopes": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>"
}
],
"logo_uri": "<string>",
"tos_uri": "<string>",
"policy_uri": "<string>",
"redirect_uri": "<string>",
"verified": true
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const oauth = await client.oauth.retrieve('consent_token');
console.log(oauth.data);{
"data": {
"client_id": "<string>",
"name": "<string>",
"requested_scopes": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>"
}
],
"logo_uri": "<string>",
"tos_uri": "<string>",
"policy_uri": "<string>",
"redirect_uri": "<string>",
"verified": true
}
}