OAuth Protocol

Create OAuth grant

Changed on

Creates an OAuth authorization grant and returns the grant response for completing the authorization flow.

post/oauth/grants

Request

  • Base URL: https://api.telnyx.com/v2
  • URL: https://api.telnyx.com/v2/oauth/grants
  • Auth: HTTP bearer

Request body

allowedboolean required

Whether the grant is allowed

consent_tokenstring required

Consent token

Response

Grant created successfully

redirect_uristring uri required

Redirect URI with authorization code or error

Changes