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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;accountId&quot;:&quot;\u003cstring\u003e&quot;,&quot;answerMethod&quot;:&quot;POST&quot;,&quot;answerUrl&quot;:&quot;\u003curi\u003e&quot;,&quot;applicationId&quot;:&quot;\u003cstring\u003e&quot;,&quot;callId&quot;:&quot;\u003cstring\u003e&quot;,&quot;callUrl&quot;:&quot;\u003curi\u003e&quot;,&quot;disconnectMethod&quot;:&quot;POST&quot;,&quot;from&quot;:&quot;\u003cstring\u003e&quot;,&quot;to&quot;:&quot;\u003cstring\u003e&quot;,&quot;enqueuedTime&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;callTimeout&quot;:&quot;\u003cdouble\u003e&quot;,&quot;callbackTimeout&quot;:&quot;\u003cdouble\u003e&quot;,&quot;tag&quot;:&quot;\u003cstring\u003e&quot;,&quot;answerFallbackMethod&quot;:&quot;POST&quot;,&quot;answerFallbackUrl&quot;:&quot;\u003curi\u003e&quot;,&quot;disconnectUrl&quot;:&quot;\u003curi\u003e&quot;,&quot;username&quot;:&quot;\u003cstring\u003e&quot;,&quot;password&quot;:&quot;\u003cstring\u003e&quot;,&quot;fallbackUsername&quot;:&quot;\u003cstring\u003e&quot;,&quot;fallbackPassword&quot;:&quot;\u003cstring\u003e&quot;,&quot;priority&quot;:&quot;\u003cinteger\u003e&quot;}