Create Call
POST {{baseUrl}}/accounts/:accountId/calls
Creates an outbound phone call.
All calls are initially queued. Your outbound calls will initiated at a specific dequeueing rate, enabling your application to fire and forget
when creating calls. Queued calls may not be modified until they are dequeued and placed, but may be removed from your queue on demand.
Please note: Calls submitted to your queue will be placed approximately in order, but exact ordering is not guaranteed.
Request Body
{"answerUrl"=>"<uri>", "applicationId"=>"<string>", "from"=>"<string>", "to"=>"<string>", "uui"=>"<string>", "answerMethod"=>"POST", "username"=>"<string>", "password"=>"<string>", "answerFallbackUrl"=>"<uri>", "answerFallbackMethod"=>"POST", "fallbackUsername"=>"<string>", "fallbackPassword"=>"<string>", "disconnectUrl"=>"<uri>", "disconnectMethod"=>"POST", "callTimeout"=>30, "callbackTimeout"=>15, "machineDetection"=>{"mode"=>"async", "detectionTimeout"=>15, "silenceTimeout"=>10, "speechThreshold"=>10, "speechEndThreshold"=>5, "machineSpeechEndThreshold"=>"<double>", "delayResult"=>false, "callbackUrl"=>"<uri>", "callbackMethod"=>"POST", "username"=>"<string>", "password"=>"<string>", "fallbackUrl"=>"<uri>", "fallbackMethod"=>"POST", "fallbackUsername"=>"<string>", "fallbackPassword"=>"<string>"}, "priority"=>5, "tag"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"accountId":"\u003cstring\u003e","answerMethod":"POST","answerUrl":"\u003curi\u003e","applicationId":"\u003cstring\u003e","callId":"\u003cstring\u003e","callUrl":"\u003curi\u003e","disconnectMethod":"POST","from":"\u003cstring\u003e","to":"\u003cstring\u003e","enqueuedTime":"\u003cdateTime\u003e","callTimeout":"\u003cdouble\u003e","callbackTimeout":"\u003cdouble\u003e","tag":"\u003cstring\u003e","answerFallbackMethod":"POST","answerFallbackUrl":"\u003curi\u003e","disconnectUrl":"\u003curi\u003e","username":"\u003cstring\u003e","password":"\u003cstring\u003e","fallbackUsername":"\u003cstring\u003e","fallbackPassword":"\u003cstring\u003e","priority":"\u003cinteger\u003e"}