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

const client = new Telnyx();

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

console.log(response.authorization_servers);
{
  "resource": "<string>",
  "authorization_servers": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Protected resource metadata

resource
string<uri>

Protected resource URL

authorization_servers
string<uri>[]

List of authorization server URLs