import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
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
}
}Retrieve details about an OAuth consent token
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
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
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
OAuth consent token
Consent token details
Show child attributes
Client ID
Client name
URL of the client logo
URL of the client's terms of service
URL of the client's privacy policy
The redirect URI for this authorization
Whether the client is verified
Was this page helpful?