{ "opencollection": "1.0.0", "info": { "name": "Telnyx Access Tokens OAuth Protocol API", "version": "2.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "OAuth Protocol", "type": "folder" }, "items": [ { "info": { "name": "OAuth authorization endpoint", "type": "http" }, "http": { "method": "GET", "url": "https://api.telnyx.com/v2/oauth/authorize", "params": [ { "name": "response_type", "value": "", "type": "query", "description": "OAuth response type" }, { "name": "client_id", "value": "", "type": "query", "description": "OAuth client identifier" }, { "name": "redirect_uri", "value": "", "type": "query", "description": "Redirect URI" }, { "name": "scope", "value": "admin", "type": "query", "description": "Space-separated list of requested scopes" }, { "name": "state", "value": "", "type": "query", "description": "State parameter for CSRF protection" }, { "name": "code_challenge", "value": "", "type": "query", "description": "PKCE code challenge" }, { "name": "code_challenge_method", "value": "", "type": "query", "description": "PKCE code challenge method" } ] }, "docs": "OAuth 2.0 authorization endpoint for the authorization code flow" }, { "info": { "name": "Get OAuth consent token", "type": "http" }, "http": { "method": "GET", "url": "https://api.telnyx.com/v2/oauth/consent/:consent_token", "params": [ { "name": "consent_token", "value": "", "type": "path", "description": "OAuth consent token" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Retrieve details about an OAuth consent token" }, { "info": { "name": "Create OAuth grant", "type": "http" }, "http": { "method": "POST", "url": "https://api.telnyx.com/v2/oauth/grants", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Create an OAuth authorization grant" }, { "info": { "name": "Token introspection", "type": "http" }, "http": { "method": "POST", "url": "https://api.telnyx.com/v2/oauth/introspect", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://api.telnyx.com/v2/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Introspect an OAuth access token to check its validity and metadata" }, { "info": { "name": "JSON Web Key Set", "type": "http" }, "http": { "method": "GET", "url": "https://api.telnyx.com/v2/oauth/jwks" }, "docs": "Retrieve the JSON Web Key Set for token verification" }, { "info": { "name": "Dynamic client registration", "type": "http" }, "http": { "method": "POST", "url": "https://api.telnyx.com/v2/oauth/register", "body": { "type": "json", "data": "{}" } }, "docs": "Register a new OAuth client dynamically (RFC 7591)" }, { "info": { "name": "OAuth token endpoint", "type": "http" }, "http": { "method": "POST", "url": "https://api.telnyx.com/v2/oauth/token", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://api.telnyx.com/v2/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Exchange authorization code, client credentials, or refresh token for access token" } ] } ], "bundled": true }