Creates an External Connection
POST/external_connections
Creates a new External Connection based on the parameters sent in the request. The external_sip_connection and outbound voice profile id are required. Once created, you can assign phone numbers to your application using the /phone_numbers
endpoint.
Request
- application/json
Body
required
Parameters that can be set when creating a External Connection
Default value: true
Specifies whether the connection can be used.
Possible values: [zoom
]
Default value: zoom
The service that will be consuming this connection.
The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'.
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'.
Possible values: <= 30
Specifies how many seconds to wait before timing out a webhook.
inbound
object
When set, this will limit the number of concurrent inbound calls to phone numbers associated with this connection.
outbound
object
When set, this will limit the number of concurrent outbound calls to phone numbers associated with this connection.
Identifies the associated outbound voice profile.
Responses
201: Successful response
- application/json
422: Bad request
Request samples
curl -L 'https://api.telnyx.com/v2/external_connections' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"external_sip_connection": "zoom",
"active": false,
"outbound": {
"outbound_voice_profile_id": "1911630617284445511"
}
}'
Response samples
{
"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"
}
}
}