Set a connection to use XML Translator authentication
POST/security/connections/:connection_id/call_control_xml_authentication
BETA: Sets the authentication method of a connection and associates the call control settings. This will remove any other authentication type set for the connection.
Request
Path Parameters
ID of the TeXML App (formerly connection) which you will set to use this type of authentication
- application/json
Body
required
XML Translator details
URL to which Telnyx will deliver your XML Translator webhooks
URL to which Telnyx will deliver your XML Translator webhooks if we get an error response from your xml_request_url
Default value: post
Method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or 'post'.
Responses
200: XML Translator Authentication creation response
- application/json
400: Bad Request
401: Unauthorized
404: Record Not Found
Request samples
curl -L 'https://api.telnyx.com/security/connections/:connection_id/call_control_xml_authentication' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"xml_request_url": "string",
"xml_failover_url": "string",
"xml_request_method": "post"
}'
Response samples
{
"success": true,
"message": "string",
"reasons": {}
}