OAuth token endpoint
Exchange authorization code, client credentials, or refresh token for access token
POST
JavaScript
Authorizations
OAuth 2.0 authentication for Telnyx API and MCP integrations
Body
OAuth 2.0 grant type
Available options:
client_credentials, authorization_code, refresh_token Space-separated list of requested scopes (for client_credentials)
Example:
"admin"
Authorization code (for authorization_code flow)
Redirect URI (for authorization_code flow)
PKCE code verifier (for authorization_code flow)
Refresh token (for refresh_token flow)
OAuth client ID (if not using HTTP Basic auth)
OAuth client secret (if not using HTTP Basic auth)
JavaScript