Skip to main content
GET
/
.well-known
/
oauth-authorization-server
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx();

const response = await client.wellKnown.retrieveAuthorizationServerMetadata();

console.log(response.authorization_endpoint);
{
  "issuer": "<string>",
  "token_endpoint": "<string>",
  "introspection_endpoint": "<string>",
  "jwks_uri": "<string>",
  "registration_endpoint": "<string>",
  "authorization_endpoint": "<string>",
  "grant_types_supported": [
    "<string>"
  ],
  "code_challenge_methods_supported": [
    "<string>"
  ],
  "response_types_supported": [
    "<string>"
  ],
  "token_endpoint_auth_methods_supported": [
    "<string>"
  ],
  "scopes_supported": [
    "admin"
  ]
}

Response

Authorization server metadata

issuer
string<uri>

Authorization server issuer URL

token_endpoint
string<uri>

Token endpoint URL

introspection_endpoint
string<uri>

Token introspection endpoint URL

jwks_uri
string<uri>

JWK Set endpoint URL

registration_endpoint
string<uri>

Dynamic client registration endpoint URL

authorization_endpoint
string<uri>

Authorization endpoint URL

grant_types_supported
string[]

Supported grant types

code_challenge_methods_supported
string[]

Supported PKCE code challenge methods

response_types_supported
string[]

Supported response types

token_endpoint_auth_methods_supported
string[]

Supported token endpoint authentication methods

scopes_supported
string[]

Supported OAuth scopes

Example:
["admin"]