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

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

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

console.log(telephonyCredentials.data);
{
  "data": [
    {
      "id": "c215ade3-0d39-418e-94be-c5f780760199",
      "record_type": "credential",
      "name": "2020-06-18 21:32:38.917732Z",
      "expired": "false",
      "user_id": "user-id",
      "resource_id": "connection:804252963366242252",
      "sip_password": "a92dbcfb60184a8cb330b0acb2f7617b",
      "sip_username": "gencrednCvHU5IYpSBPPsXI2iQsDX",
      "created_at": "2020-06-18T21:32:38",
      "expires_at": "2042-06-18T21:32:38",
      "updated_at": "2020-06-18T21:32:38.000Z"
    }
  ],
  "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

page
object

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

filter
object

Consolidated filter parameter (deepObject style). Originally: filter[tag], filter[name], filter[status], filter[resource_id], filter[sip_username]

Response

Successful response with multiple credentials

data
On-demand Credential · object[]
meta
object