telnyx-sip-javascript
Original:🇺🇸 English
Translated
Configure SIP trunking connections and outbound voice profiles. Use when connecting PBX systems or managing SIP infrastructure. This skill provides JavaScript SDK examples.
4installs
Sourceteam-telnyx/skills
Added on
NPX Install
npx skill4agent add team-telnyx/skills telnyx-sip-javascriptTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
— Required:
— Required: , ,
— Required:
— Required: , ,
— Required:
— Required:
— Required:
— Required:
Telnyx Sip - JavaScript
Installation
bash
npm install telnyxSetup
javascript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});All examples below assume is already initialized as shown above.
clientError Handling
All API calls can fail with network errors, rate limits (429), validation errors (422),
or authentication errors (401). Always handle errors in production code:
javascript
try {
const result = await client.messages.send({ to: '+13125550001', from: '+13125550002', text: 'Hello' });
} catch (err) {
if (err instanceof Telnyx.APIConnectionError) {
console.error('Network error — check connectivity and retry');
} else if (err instanceof Telnyx.RateLimitError) {
// 429: rate limited — wait and retry with exponential backoff
const retryAfter = err.headers?.['retry-after'] || 1;
await new Promise(r => setTimeout(r, retryAfter * 1000));
} else if (err instanceof Telnyx.APIError) {
console.error(`API error ${err.status}: ${err.message}`);
if (err.status === 422) {
console.error('Validation error — check required fields and formats');
}
}
}Common error codes: invalid API key, insufficient permissions,
resource not found, validation error (check field formats),
rate limited (retry with exponential backoff).
401403404422429Important Notes
- Pagination: List methods return an auto-paginating iterator. Use to iterate through all pages automatically.
for await (const item of result) { ... }
List all Access IP Ranges
GET /access_ip_rangesjavascript
// Automatically fetches more pages as needed.
for await (const accessIPRange of client.accessIPRanges.list()) {
console.log(accessIPRange.id);
}Returns: (string), (date-time), (string), (string), (enum: pending, added), (date-time), (string)
cidr_blockcreated_atdescriptionidstatusupdated_atuser_idCreate new Access IP Range
POST /access_ip_rangescidr_blockOptional: (string)
descriptionjavascript
const accessIPRange = await client.accessIPRanges.create({ cidr_block: 'cidr_block' });
console.log(accessIPRange.id);Returns: (string), (date-time), (string), (string), (enum: pending, added), (date-time), (string)
cidr_blockcreated_atdescriptionidstatusupdated_atuser_idDelete access IP ranges
DELETE /access_ip_ranges/{access_ip_range_id}javascript
const accessIPRange = await client.accessIPRanges.delete('550e8400-e29b-41d4-a716-446655440000');
console.log(accessIPRange.id);Returns: (string), (date-time), (string), (string), (enum: pending, added), (date-time), (string)
cidr_blockcreated_atdescriptionidstatusupdated_atuser_idList connections
Returns a list of your connections irrespective of type.
GET /connectionsjavascript
// Automatically fetches more pages as needed.
for await (const connectionListResponse of client.connections.list()) {
console.log(connectionListResponse.id);
}Returns: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string), (string), (string), (string), (string), (array[string]), (string), (enum: 1, 2), (uri), (uri)
activeanchorsite_overrideconnection_namecreated_atidoutbound_voice_profile_idrecord_typetagsupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlRetrieve a connection
Retrieves the high-level details of an existing connection. To retrieve specific authentication information, use the endpoint for the specific connection type.
GET /connections/{id}javascript
const connection = await client.connections.retrieve('550e8400-e29b-41d4-a716-446655440000');
console.log(connection.data);Returns: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string), (string), (string), (string), (string), (array[string]), (string), (enum: 1, 2), (uri), (uri)
activeanchorsite_overrideconnection_namecreated_atidoutbound_voice_profile_idrecord_typetagsupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlList credential connections
Returns a list of your credential connections.
GET /credential_connectionsjavascript
// Automatically fetches more pages as needed.
for await (const credentialConnection of client.credentialConnections.list()) {
console.log(credentialConnection.id);
}Returns: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (string), (object), (enum: disabled, unrestricted, internal), (array[string]), (string), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingssip_uri_calling_preferencetagsupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsCreate a credential connection
Creates a credential connection.
POST /credential_connectionsuser_namepasswordconnection_nameOptional: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (object), (enum: disabled, unrestricted, internal), (array[string]), (enum: 1, 2, texml), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediainboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrtcp_settingssip_uri_calling_preferencetagswebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsjavascript
const credentialConnection = await client.credentialConnections.create({
connection_name: 'my name',
password: 'my123secure456password789',
user_name: 'myusername123',
});
console.log(credentialConnection.data);Returns: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (string), (object), (enum: disabled, unrestricted, internal), (array[string]), (string), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingssip_uri_calling_preferencetagsupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsRetrieve a credential connection
Retrieves the details of an existing credential connection.
GET /credential_connections/{id}javascript
const credentialConnection = await client.credentialConnections.retrieve('550e8400-e29b-41d4-a716-446655440000');
console.log(credentialConnection.data);Returns: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (string), (object), (enum: disabled, unrestricted, internal), (array[string]), (string), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingssip_uri_calling_preferencetagsupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsUpdate a credential connection
Updates settings of an existing credential connection.
PATCH /credential_connections/{id}Optional: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (object), (enum: disabled, unrestricted, internal), (array[string]), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namedefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediainboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrtcp_settingssip_uri_calling_preferencetagsuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsjavascript
const credentialConnection = await client.credentialConnections.update('550e8400-e29b-41d4-a716-446655440000');
console.log(credentialConnection.data);Returns: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (string), (object), (enum: disabled, unrestricted, internal), (array[string]), (string), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingssip_uri_calling_preferencetagsupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsDelete a credential connection
Deletes an existing credential connection.
DELETE /credential_connections/{id}javascript
const credentialConnection = await client.credentialConnections.delete('550e8400-e29b-41d4-a716-446655440000');
console.log(credentialConnection.data);Returns: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (string), (object), (enum: disabled, unrestricted, internal), (array[string]), (string), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingssip_uri_calling_preferencetagsupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsCheck a Credential Connection Registration Status
Checks the registration_status for a credential connection, () as well as the timestamp for the last SIP registration event ()
registration_statusregistration_status_updated_atPOST /credential_connections/{id}/actions/check_registration_statusjavascript
const response = await client.credentialConnections.actions.checkRegistrationStatus('550e8400-e29b-41d4-a716-446655440000');
console.log(response.data);Returns: (string), (string), (integer), (string), (string), (enum: Not Applicable, Not Registered, Failed, Expired, Registered, Unregistered), (string), (string)
ip_addresslast_registrationportrecord_typesip_usernamestatustransportuser_agentList FQDN connections
Returns a list of your FQDN connections.
GET /fqdn_connectionsjavascript
// Automatically fetches more pages as needed.
for await (const fqdnConnection of client.fqdnConnections.list()) {
console.log(fqdnConnection.id);
}Returns: (boolean), (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (boolean), (boolean), (object), (string | null), (object), (boolean), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (string), (object), (boolean), (boolean), (array[string]), (boolean), (enum: UDP, TCP, TLS), (string), (integer), (string), (string), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeadjust_dtmf_timestampanchorsite_overrideandroid_push_credential_idcall_cost_enabledcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidignore_dtmf_durationignore_mark_bitinboundios_push_credential_idjitter_buffermicrosoft_teams_sbcnoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingsrtp_pass_codecs_on_stream_changesend_normalized_timestampstagsthird_party_control_enabledtransport_protocoltxt_nametxt_ttltxt_valueupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsCreate an FQDN connection
Creates a FQDN connection.
POST /fqdn_connectionsconnection_nameOptional: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (object), (string | null), (object), (boolean), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (object), (array[string]), (enum: UDP, TCP, TLS), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediainboundios_push_credential_idjitter_buffermicrosoft_teams_sbcnoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrtcp_settingstagstransport_protocolwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsjavascript
const fqdnConnection = await client.fqdnConnections.create({ connection_name: 'my-resource' });
console.log(fqdnConnection.data);Returns: (boolean), (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (boolean), (boolean), (object), (string | null), (object), (boolean), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (string), (object), (boolean), (boolean), (array[string]), (boolean), (enum: UDP, TCP, TLS), (string), (integer), (string), (string), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeadjust_dtmf_timestampanchorsite_overrideandroid_push_credential_idcall_cost_enabledcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidignore_dtmf_durationignore_mark_bitinboundios_push_credential_idjitter_buffermicrosoft_teams_sbcnoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingsrtp_pass_codecs_on_stream_changesend_normalized_timestampstagsthird_party_control_enabledtransport_protocoltxt_nametxt_ttltxt_valueupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsRetrieve an FQDN connection
Retrieves the details of an existing FQDN connection.
GET /fqdn_connections/{id}javascript
const fqdnConnection = await client.fqdnConnections.retrieve('1293384261075731499');
console.log(fqdnConnection.data);Returns: (boolean), (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (boolean), (boolean), (object), (string | null), (object), (boolean), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (string), (object), (boolean), (boolean), (array[string]), (boolean), (enum: UDP, TCP, TLS), (string), (integer), (string), (string), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeadjust_dtmf_timestampanchorsite_overrideandroid_push_credential_idcall_cost_enabledcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidignore_dtmf_durationignore_mark_bitinboundios_push_credential_idjitter_buffermicrosoft_teams_sbcnoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingsrtp_pass_codecs_on_stream_changesend_normalized_timestampstagsthird_party_control_enabledtransport_protocoltxt_nametxt_ttltxt_valueupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsUpdate an FQDN connection
Updates settings of an existing FQDN connection.
PATCH /fqdn_connections/{id}Optional: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (object), (array[string]), (enum: UDP, TCP, TLS), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namedefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediainboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrtcp_settingstagstransport_protocolwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsjavascript
const fqdnConnection = await client.fqdnConnections.update('1293384261075731499');
console.log(fqdnConnection.data);Returns: (boolean), (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (boolean), (boolean), (object), (string | null), (object), (boolean), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (string), (object), (boolean), (boolean), (array[string]), (boolean), (enum: UDP, TCP, TLS), (string), (integer), (string), (string), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeadjust_dtmf_timestampanchorsite_overrideandroid_push_credential_idcall_cost_enabledcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidignore_dtmf_durationignore_mark_bitinboundios_push_credential_idjitter_buffermicrosoft_teams_sbcnoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingsrtp_pass_codecs_on_stream_changesend_normalized_timestampstagsthird_party_control_enabledtransport_protocoltxt_nametxt_ttltxt_valueupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsDelete an FQDN connection
Deletes an FQDN connection.
DELETE /fqdn_connections/{id}javascript
const fqdnConnection = await client.fqdnConnections.delete('1293384261075731499');
console.log(fqdnConnection.data);Returns: (boolean), (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (boolean), (boolean), (object), (string | null), (object), (boolean), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (string), (object), (boolean), (boolean), (array[string]), (boolean), (enum: UDP, TCP, TLS), (string), (integer), (string), (string), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeadjust_dtmf_timestampanchorsite_overrideandroid_push_credential_idcall_cost_enabledcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidignore_dtmf_durationignore_mark_bitinboundios_push_credential_idjitter_buffermicrosoft_teams_sbcnoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingsrtp_pass_codecs_on_stream_changesend_normalized_timestampstagsthird_party_control_enabledtransport_protocoltxt_nametxt_ttltxt_valueupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsList FQDNs
Get all FQDNs belonging to the user that match the given filters.
GET /fqdnsjavascript
// Automatically fetches more pages as needed.
for await (const fqdn of client.fqdns.list()) {
console.log(fqdn.id);
}Returns: (string), (string), (string), (string), (string), (integer), (string), (string)
connection_idcreated_atdns_record_typefqdnidportrecord_typeupdated_atCreate an FQDN
Create a new FQDN object.
POST /fqdnsfqdndns_record_typeconnection_idOptional: (integer | null)
portjavascript
const fqdn = await client.fqdns.create({
connection_id: '1516447646313612565',
dns_record_type: 'a',
fqdn: 'example.com',
});
console.log(fqdn.data);Returns: (string), (string), (string), (string), (string), (integer), (string), (string)
connection_idcreated_atdns_record_typefqdnidportrecord_typeupdated_atRetrieve an FQDN
Return the details regarding a specific FQDN.
GET /fqdns/{id}javascript
const fqdn = await client.fqdns.retrieve('1517907029795014409');
console.log(fqdn.data);Returns: (string), (string), (string), (string), (string), (integer), (string), (string)
connection_idcreated_atdns_record_typefqdnidportrecord_typeupdated_atUpdate an FQDN
Update the details of a specific FQDN.
PATCH /fqdns/{id}Optional: (string), (string), (string), (integer | null)
connection_iddns_record_typefqdnportjavascript
const fqdn = await client.fqdns.update('1517907029795014409');
console.log(fqdn.data);Returns: (string), (string), (string), (string), (string), (integer), (string), (string)
connection_idcreated_atdns_record_typefqdnidportrecord_typeupdated_atDelete an FQDN
Delete an FQDN.
DELETE /fqdns/{id}javascript
const fqdn = await client.fqdns.delete('1517907029795014409');
console.log(fqdn.data);Returns: (string), (string), (string), (string), (string), (integer), (string), (string)
connection_idcreated_atdns_record_typefqdnidportrecord_typeupdated_atList Ip connections
Returns a list of your IP connections.
GET /ip_connectionsjavascript
// Automatically fetches more pages as needed.
for await (const ipConnection of client.ipConnections.list()) {
console.log(ipConnection.id);
}Returns: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (object), (array[string]), (enum: UDP, TCP, TLS), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrecord_typertcp_settingstagstransport_protocolupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsCreate an Ip connection
Creates an IP connection.
POST /ip_connectionsOptional: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (object), (array[string]), (enum: UDP, TCP, TLS), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namedefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediainboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrtcp_settingstagstransport_protocolwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsjavascript
const ipConnection = await client.ipConnections.create({
connectionName: 'my-ip-connection',
});
console.log(ipConnection.data);Returns: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (object), (array[string]), (enum: UDP, TCP, TLS), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrecord_typertcp_settingstagstransport_protocolupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsRetrieve an Ip connection
Retrieves the details of an existing ip connection.
GET /ip_connections/{id}javascript
const ipConnection = await client.ipConnections.retrieve('550e8400-e29b-41d4-a716-446655440000');
console.log(ipConnection.data);Returns: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (object), (array[string]), (enum: UDP, TCP, TLS), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrecord_typertcp_settingstagstransport_protocolupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsUpdate an Ip connection
Updates settings of an existing IP connection.
PATCH /ip_connections/{id}Optional: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (object), (array[string]), (enum: UDP, TCP, TLS), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namedefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediainboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrtcp_settingstagstransport_protocolwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsjavascript
const ipConnection = await client.ipConnections.update('550e8400-e29b-41d4-a716-446655440000');
console.log(ipConnection.data);Returns: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (object), (array[string]), (enum: UDP, TCP, TLS), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrecord_typertcp_settingstagstransport_protocolupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsDelete an Ip connection
Deletes an existing IP connection.
DELETE /ip_connections/{id}javascript
const ipConnection = await client.ipConnections.delete('550e8400-e29b-41d4-a716-446655440000');
console.log(ipConnection.data);Returns: (boolean), (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), (string | null), (boolean), (string), (string), (boolean), (enum: RFC 2833, Inband, SIP INFO), (boolean), (enum: SRTP, None), (string), (object), (string | null), (object), (enum: inbound, outbound, both, disabled), (object), (boolean), (object), (string), (object), (array[string]), (enum: UDP, TCP, TLS), (string), (enum: 1, 2), (uri), (uri), (integer | null)
activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrecord_typertcp_settingstagstransport_protocolupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsList Ips
Get all IPs belonging to the user that match the given filters.
GET /ipsjavascript
// Automatically fetches more pages as needed.
for await (const ip of client.ips.list()) {
console.log(ip.id);
}Returns: (string), (string), (string), (string), (integer), (string), (string)
connection_idcreated_atidip_addressportrecord_typeupdated_atCreate an Ip
Create a new IP object.
POST /ipsip_addressOptional: (string), (integer)
connection_idportjavascript
const ip = await client.ips.create({ ip_address: '192.168.0.0' });
console.log(ip.data);Returns: (string), (string), (string), (string), (integer), (string), (string)
connection_idcreated_atidip_addressportrecord_typeupdated_atRetrieve an Ip
Return the details regarding a specific IP.
GET /ips/{id}javascript
const ip = await client.ips.retrieve('6a09cdc3-8948-47f0-aa62-74ac943d6c58');
console.log(ip.data);Returns: (string), (string), (string), (string), (integer), (string), (string)
connection_idcreated_atidip_addressportrecord_typeupdated_atUpdate an Ip
Update the details of a specific IP.
PATCH /ips/{id}ip_addressOptional: (string), (integer)
connection_idportjavascript
const ip = await client.ips.update('6a09cdc3-8948-47f0-aa62-74ac943d6c58', {
ip_address: '192.168.0.0',
});
console.log(ip.data);Returns: (string), (string), (string), (string), (integer), (string), (string)
connection_idcreated_atidip_addressportrecord_typeupdated_atDelete an Ip
Delete an IP.
DELETE /ips/{id}javascript
const ip = await client.ips.delete('6a09cdc3-8948-47f0-aa62-74ac943d6c58');
console.log(ip.data);Returns: (string), (string), (string), (string), (integer), (string), (string)
connection_idcreated_atidip_addressportrecord_typeupdated_atGet all outbound voice profiles
Get all outbound voice profiles belonging to the user that match the given filters.
GET /outbound_voice_profilesjavascript
// Automatically fetches more pages as needed.
for await (const outboundVoiceProfile of client.outboundVoiceProfiles.list()) {
console.log(outboundVoiceProfile.id);
}Returns: (uuid), (object), (object), (integer | null), (integer), (string), (string), (boolean), (boolean), (string), (number), (string), (string), (enum: global), (array[string]), (enum: conversational), (string), (enum: rate-deck), (array[string])
billing_group_idcall_recordingcalling_windowconcurrent_call_limitconnections_countcreated_atdaily_spend_limitdaily_spend_limit_enabledenabledidmax_destination_ratenamerecord_typeservice_plantagstraffic_typeupdated_atusage_payment_methodwhitelisted_destinationsCreate an outbound voice profile
Create an outbound voice profile.
POST /outbound_voice_profilesnameOptional: (uuid), (object), (object), (integer | null), (string), (boolean), (boolean), (number), (enum: global), (array[string]), (enum: conversational), (enum: rate-deck), (array[string])
billing_group_idcall_recordingcalling_windowconcurrent_call_limitdaily_spend_limitdaily_spend_limit_enabledenabledmax_destination_rateservice_plantagstraffic_typeusage_payment_methodwhitelisted_destinationsjavascript
const outboundVoiceProfile = await client.outboundVoiceProfiles.create({ name: 'office' });
console.log(outboundVoiceProfile.data);Returns: (uuid), (object), (object), (integer | null), (integer), (string), (string), (boolean), (boolean), (string), (number), (string), (string), (enum: global), (array[string]), (enum: conversational), (string), (enum: rate-deck), (array[string])
billing_group_idcall_recordingcalling_windowconcurrent_call_limitconnections_countcreated_atdaily_spend_limitdaily_spend_limit_enabledenabledidmax_destination_ratenamerecord_typeservice_plantagstraffic_typeupdated_atusage_payment_methodwhitelisted_destinationsRetrieve an outbound voice profile
Retrieves the details of an existing outbound voice profile.
GET /outbound_voice_profiles/{id}javascript
const outboundVoiceProfile = await client.outboundVoiceProfiles.retrieve('1293384261075731499');
console.log(outboundVoiceProfile.data);Returns: (uuid), (object), (object), (integer | null), (integer), (string), (string), (boolean), (boolean), (string), (number), (string), (string), (enum: global), (array[string]), (enum: conversational), (string), (enum: rate-deck), (array[string])
billing_group_idcall_recordingcalling_windowconcurrent_call_limitconnections_countcreated_atdaily_spend_limitdaily_spend_limit_enabledenabledidmax_destination_ratenamerecord_typeservice_plantagstraffic_typeupdated_atusage_payment_methodwhitelisted_destinationsUpdates an existing outbound voice profile.
PATCH /outbound_voice_profiles/{id}nameOptional: (uuid), (object), (object), (integer | null), (string), (boolean), (boolean), (number), (enum: global), (array[string]), (enum: conversational), (enum: rate-deck), (array[string])
billing_group_idcall_recordingcalling_windowconcurrent_call_limitdaily_spend_limitdaily_spend_limit_enabledenabledmax_destination_rateservice_plantagstraffic_typeusage_payment_methodwhitelisted_destinationsjavascript
const outboundVoiceProfile = await client.outboundVoiceProfiles.update('1293384261075731499', {
name: 'office',
});
console.log(outboundVoiceProfile.data);Returns: (uuid), (object), (object), (integer | null), (integer), (string), (string), (boolean), (boolean), (string), (number), (string), (string), (enum: global), (array[string]), (enum: conversational), (string), (enum: rate-deck), (array[string])
billing_group_idcall_recordingcalling_windowconcurrent_call_limitconnections_countcreated_atdaily_spend_limitdaily_spend_limit_enabledenabledidmax_destination_ratenamerecord_typeservice_plantagstraffic_typeupdated_atusage_payment_methodwhitelisted_destinationsDelete an outbound voice profile
Deletes an existing outbound voice profile.
DELETE /outbound_voice_profiles/{id}javascript
const outboundVoiceProfile = await client.outboundVoiceProfiles.delete('1293384261075731499');
console.log(outboundVoiceProfile.data);Returns: (uuid), (object), (object), (integer | null), (integer), (string), (string), (boolean), (boolean), (string), (number), (string), (string), (enum: global), (array[string]), (enum: conversational), (string), (enum: rate-deck), (array[string])
billing_group_idcall_recordingcalling_windowconcurrent_call_limitconnections_countcreated_atdaily_spend_limitdaily_spend_limit_enabledenabledidmax_destination_ratenamerecord_typeservice_plantagstraffic_typeupdated_atusage_payment_methodwhitelisted_destinations