Initiate an outbound call
In order to create an outbound call from a voice channel you can use this request. You can set a callFlow with commands to be executed after call is answered.
Call flow command initiate an outbound call
Check bellow the available commands when initiating an outbound call. In order to assess the options of each command, you may explore each command section.
Create a channel call
post
/workspaces/{workspaceId}/channels/{channelId}/calls
Authorizations
Path parameters
workspaceIdstring · uuidrequired
The ID of the workspace
channelIdstring · uuidrequired
The ID for a channel
Body
fromstring
tostringrequired
ringTimeoutinteger · min: 3 · max: 120 · default: 30
maxDurationinteger · min: 1 · default: 14400
sendKeysstring · max: 20
Pattern:
^[0-9*#]+$
recordboolean
stereoboolean
scheduledForstring · date-time
notificationCallNotification
amdSettingsAmdSettings
tagsstring · min: 1 · max: 50[]
Tags to associate with the call. Tags are converted to lower case and tags that do not exist are automatically created. You can view your created tags in the UI. You can specify up to 10 tags per call.
recordStartstring · enum
Options:
record-from-answer
, record-from-ringing
flowStartstring · enum
Options:
from-answer
, from-ringing
callFlowCallFlowCommand[]
Responses
application/json
application/json
application/json
application/json
cURL
JavaScript
Python
HTTP
202
400
404
422
Example 1: Initiate an outbound call, play an announcement and hangup
Example 2: Initiate an outbound call with TTS
Last updated
Was this helpful?