import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const externalConnection of client.externalConnections.list()) {
console.log(externalConnection.id);
}{
"data": [
{
"id": "1930241863466354012",
"record_type": "external_connection",
"external_sip_connection": "zoom",
"credential_active": false,
"active": false,
"created_at": "2022-06-29T19:23:59Z",
"updated_at": "2022-06-29T19:39:47Z",
"outbound": {
"outbound_voice_profile_id": "1911630617284445511"
}
}
],
"meta": {
"total_pages": 3,
"page_number": 2,
"total_results": 55,
"page_size": 25
}
}This endpoint returns a list of your External Connections inside the ‘data’ attribute of the response. External Connections are used by Telnyx customers to seamless configure SIP trunking integrations with Telnyx Partners, through External Voice Integrations in Mission Control Portal.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const externalConnection of client.externalConnections.list()) {
console.log(externalConnection.id);
}{
"data": [
{
"id": "1930241863466354012",
"record_type": "external_connection",
"external_sip_connection": "zoom",
"credential_active": false,
"active": false,
"created_at": "2022-06-29T19:23:59Z",
"updated_at": "2022-06-29T19:39:47Z",
"outbound": {
"outbound_voice_profile_id": "1911630617284445511"
}
}
],
"meta": {
"total_pages": 3,
"page_number": 2,
"total_results": 55,
"page_size": 25
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Filter parameter for external connections (deepObject style). Supports filtering by connection_name, external_sip_connection, id, created_at, and phone_number.
Show child attributes
If present, connections with external_sip_connection matching the given value will be returned.
zoom, operator_connect "zoom"
If present, connections with id matching the given value will be returned.
"1930241863466354012"
If present, connections with created_at date matching the given YYYY-MM-DD date will be returned.
"2022-12-31"
Phone number filter for connections. Note: Despite the 'contains' name, this requires a full E164 match per the original specification.
Show child attributes
If present, connections associated with the given phone_number will be returned. A full match is necessary with a e164 format.
"+15555555555"
Successful response
Show child attributes
Uniquely identifies the resource.
"1293384261075731499"
Identifies the type of the resource.
"external_connection"
Specifies whether the connection can be used.
false
If the credential associated with this service is active.
true
The service that will be consuming this connection.
zoom, operator_connect "zoom"
Tags associated with the connection.
["tag1", "tag2"]The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'.
"https://example.com"
The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'.
"https://failover.example.com"
Determines which webhook format will be used, Telnyx API v1 or v2.
1, 2 "1"
Specifies how many seconds to wait before timing out a webhook.
0 <= x <= 3025
Show child attributes
ISO 8601 formatted date indicating when the resource was created.
"2018-02-02T22:25:27.521Z"
ISO 8601 formatted date indicating when the resource was updated.
"2018-02-02T22:25:27.521Z"
Was this page helpful?