Return a list of call control applications.
Successful response with a list of call control applications.
Array of objects (Call Control Application) | |
object (PaginationMeta) |
Bad request
Unauthorized response. Happens when the current user is not a manager account.
Resource not found
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.CallControlApplication.list(page={"number":1,"size":20})
{- "data": [
- {
- "active": false,
- "anchorsite_override": "\"Latency\"",
- "application_name": "call-router",
- "created_at": "2018-02-02T22:25:27.521Z",
- "dtmf_type": "Inband",
- "first_command_timeout": true,
- "first_command_timeout_secs": 10,
- "id": "1293384261075731499",
- "inbound": {
- "channel_limit": 10,
- "sip_subdomain": "example",
- "sip_subdomain_receive_settings": "only_my_connections"
}, - "outbound": {
- "channel_limit": 10,
- "outbound_voice_profile_id": "1293384261075731499"
}, - "record_type": "call_control_application",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "webhook_api_version": "1",
- "webhook_timeout_secs": 25
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Create a call control application.
Create call control application request.
Successful response with details about a call control application.
Bad Request
{- "active": false,
- "anchorsite_override": "\"Latency\"",
- "application_name": "call-router",
- "dtmf_type": "Inband",
- "first_command_timeout": true,
- "first_command_timeout_secs": 10,
- "inbound": {
- "channel_limit": 10,
- "sip_subdomain": "example",
- "sip_subdomain_receive_settings": "only_my_connections"
}, - "outbound": {
- "channel_limit": 10,
- "outbound_voice_profile_id": "1293384261075731499"
}, - "webhook_api_version": "1",
- "webhook_timeout_secs": 25
}
{- "data": {
- "active": false,
- "anchorsite_override": "\"Latency\"",
- "application_name": "call-router",
- "created_at": "2018-02-02T22:25:27.521Z",
- "dtmf_type": "Inband",
- "first_command_timeout": true,
- "first_command_timeout_secs": 10,
- "id": "1293384261075731499",
- "inbound": {
- "channel_limit": 10,
- "sip_subdomain": "example",
- "sip_subdomain_receive_settings": "only_my_connections"
}, - "outbound": {
- "channel_limit": 10,
- "outbound_voice_profile_id": "1293384261075731499"
}, - "record_type": "call_control_application",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "webhook_api_version": "1",
- "webhook_timeout_secs": 25
}
}
Deletes a call control application.
Successful response with details about a call control application.
object (CallControlApplication) | |||||||||||||||||||||||||||||||||
|
Unauthorized response. Happens when the current user is not a manager account.
Resource not found
Bad request
import telnyx telnyx.api_key = "YOUR_API_KEY" res = telnyx.CallControlApplication.retrieve('id') res.delete()
{- "data": {
- "active": false,
- "anchorsite_override": "\"Latency\"",
- "application_name": "call-router",
- "created_at": "2018-02-02T22:25:27.521Z",
- "dtmf_type": "Inband",
- "first_command_timeout": true,
- "first_command_timeout_secs": 10,
- "id": "1293384261075731499",
- "inbound": {
- "channel_limit": 10,
- "sip_subdomain": "example",
- "sip_subdomain_receive_settings": "only_my_connections"
}, - "outbound": {
- "channel_limit": 10,
- "outbound_voice_profile_id": "1293384261075731499"
}, - "record_type": "call_control_application",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "webhook_api_version": "1",
- "webhook_timeout_secs": 25
}
}
Retrieves the details of an existing call control application.
Successful response with details about a call control application.
object (CallControlApplication) | |||||||||||||||||||||||||||||||||
|
Unauthorized response. Happens when the current user is not a manager account.
Resource not found
Bad request
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.CallControlApplication.retrieve("id")
{- "data": {
- "active": false,
- "anchorsite_override": "\"Latency\"",
- "application_name": "call-router",
- "created_at": "2018-02-02T22:25:27.521Z",
- "dtmf_type": "Inband",
- "first_command_timeout": true,
- "first_command_timeout_secs": 10,
- "id": "1293384261075731499",
- "inbound": {
- "channel_limit": 10,
- "sip_subdomain": "example",
- "sip_subdomain_receive_settings": "only_my_connections"
}, - "outbound": {
- "channel_limit": 10,
- "outbound_voice_profile_id": "1293384261075731499"
}, - "record_type": "call_control_application",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "webhook_api_version": "1",
- "webhook_timeout_secs": 25
}
}
Updates settings of an existing call control application.
Update call control application request.
active | boolean Default: true Specifies whether the connection can be used. |
anchorsite_override | string Default: "\"Latency\""
|
application_name required | string A user-assigned name to help manage the application. |
dtmf_type | string Default: "RFC 2833" Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats. |
first_command_timeout | boolean Default: false Specifies whether calls to phone numbers associated with this connection should hangup after timing out. |
first_command_timeout_secs | integer Default: 30 Specifies how many seconds to wait before timing out a dial command. |
object (CallControlApplicationInbound) | |
object (CallControlApplicationOutbound) | |
webhook_api_version | string Default: "1" Determines which webhook format will be used, Telnyx API v1 or v2. |
webhook_event_failover_url | string <url> Default: "" 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'. |
webhook_event_url required | string <url> The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. |
webhook_timeout_secs | integer [ 0 .. 30 ] Default: null Specifies how many seconds to wait before timing out a webhook. |
Successful response with details about a call control application.
object (CallControlApplication) | |||||||||||||||||||||||||||||||||
|
Unauthorized response. Happens when the current user is not a manager account.
Resource not found
Bad request
{- "active": false,
- "anchorsite_override": "\"Latency\"",
- "application_name": "call-router",
- "dtmf_type": "Inband",
- "first_command_timeout": true,
- "first_command_timeout_secs": 10,
- "inbound": {
- "channel_limit": 10,
- "sip_subdomain": "example",
- "sip_subdomain_receive_settings": "only_my_connections"
}, - "outbound": {
- "channel_limit": 10,
- "outbound_voice_profile_id": "1293384261075731499"
}, - "webhook_api_version": "1",
- "webhook_timeout_secs": 25
}
{- "data": {
- "active": false,
- "anchorsite_override": "\"Latency\"",
- "application_name": "call-router",
- "created_at": "2018-02-02T22:25:27.521Z",
- "dtmf_type": "Inband",
- "first_command_timeout": true,
- "first_command_timeout_secs": 10,
- "id": "1293384261075731499",
- "inbound": {
- "channel_limit": 10,
- "sip_subdomain": "example",
- "sip_subdomain_receive_settings": "only_my_connections"
}, - "outbound": {
- "channel_limit": 10,
- "outbound_voice_profile_id": "1293384261075731499"
}, - "record_type": "call_control_application",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "webhook_api_version": "1",
- "webhook_timeout_secs": 25
}
}