Skip to main content
GET
/
oauth
/
consent
/
{consent_token}
JavaScript
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
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

OAuth consent token

Response

Consent token details

data
object