Calls
create a call
post/Accounts/{AccountSid}/Calls
Path parameters
AccountSidstring required
Request body
Example request
{
"call_hook": {
"url": "https://acme.com",
"method": "POST"
},
"call_status_hook": {
"url": "https://acme.com",
"method": "POST"
},
"from": "16175551212",
"fromHost": "sip.example.com",
"timeout": 30,
"timeLimit": 60,
"tag": {
"callCount": 10
},
"to": {
"type": "phone",
"number": "+16172375080"
},
"headers": {
"X-Custom-Header": "Hello"
},
"sipRequestWithinDialogHook": "/customHook",
"speech_synthesis_vendor": "google",
"speech_synthesis_language": "en-US",
"speech_synthesis_voice": "Wavenet-A",
"speech_recognizer_vendor": "google",
"speech_recognizer_language": "en-US"
}Response
call successfully created
Example response
{
"sid": "2531329f-fb09-4ef7-887e-84e648214436"
}