import Telnyx from 'telnyx';
const client = new Telnyx();
await client.oauth.retrieveAuthorize({
client_id: 'client_id',
redirect_uri: 'https://example.com',
response_type: 'code',
});"<string>"OAuth 2.0 authorization endpoint for the authorization code flow
import Telnyx from 'telnyx';
const client = new Telnyx();
await client.oauth.retrieveAuthorize({
client_id: 'client_id',
redirect_uri: 'https://example.com',
response_type: 'code',
});"<string>"Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
OAuth response type
code OAuth client identifier
Redirect URI
Space-separated list of requested scopes
State parameter for CSRF protection
PKCE code challenge
PKCE code challenge method
plain, S256 Consent page displayed (when consent UI is embedded)
Was this page helpful?