Skip to main content
GET
/
authentication_providers
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const authenticationProviders = await client.authenticationProviders.list();

console.log(authenticationProviders.data);
{
  "data": [
    {
      "id": "35146afd-df93-4963-b1e9-1a085e2ae874",
      "record_type": "authentication_provider",
      "name": "Okta",
      "short_name": "myorg",
      "organization_id": "24b4a4bb-c4df-46ad-bbcb-23fc741c5ad7",
      "active": true,
      "settings": {
        "assertion_consumer_service_url": "https://api.telnyx.com/sso/saml/auth/myorg",
        "service_provider_entity_id": "https://api.telnyx.com/sso/saml/metadata/myorg",
        "idp_entity_id": "https://myorg.myidp.com/saml/metadata",
        "idp_sso_target_url": "https://myorg.myidp.com/trust/saml2/http-post/sso",
        "idp_cert_fingerprint": "13:38:C7:BB:C9:FF:4A:70:38:3A:E3:D9:5C:CD:DB:2E:50:1E:80:A7",
        "idp_cert_fingerprint_algorithm": "sha256",
        "name_identifier_format": "urn:oasis:names:tc:SAML:1.1:nameid-format"
      },
      "created_at": "2018-02-02T22:25:27.521Z",
      "updated_at": "2018-02-02T22:25:27.521Z"
    }
  ],
  "meta": {
    "page_number": 2,
    "page_size": 25,
    "total_pages": 3,
    "total_results": 55
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

sort
enum<string>
default:-created_at

Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code>-</code> prefix.<br/><br/> That is: <ul>

<li> <code>name</code>: sorts the result by the <code>name</code> field in ascending order. </li> <li> <code>-name</code>: sorts the result by the <code>name</code> field in descending order. </li> </ul><br/>If not given, results are sorted by <code>created_at</code> in descending order.
Available options:
name,
-name,
short_name,
-short_name,
active,
-active,
created_at,
-created_at,
updated_at,
-updated_at
Example:

"name"

page
object

Consolidated page parameter (deepObject style). Originally: page[number], page[size]

Response

Successful response

data
AuthenticationProvider · object[]
meta
object