TeXML REST Commands
Create a connection-scoped TeXML call
Initiate an outbound TeXML call using a TeXML application connection ID, not an account SID. Request parameter names are case-sensitive. From and To are required; Texml supplies inline instructions and Url overrides the application XML request URL. When neither is supplied, the application configuration supplies the instructions. The response is a flat call object without a data wrapper.
post/texml/calls/{connection_id}
Path parameters
connection_idstring required
The ID of the connection holding the TeXML application to call from.
Request body
Example request
{
"From": "+13120001234",
"To": "+13121230000",
"Texml": "<Response><Say>Hello</Say></Response>",
"Url": "https://example.com/instructions.xml",
"Method": "POST"
}Response
The outbound call was queued.
Example response
{
"call_sid": "v3:call-control-id",
"from": "+13120001234",
"to": "+13121230000",
"status": "queued"
}