Skip to main content

CCM Make Call

Initiate an outbound call connecting an agent to a customer.

HTTP Request​

POST /v2/accounts/<account_sid>/calls

Request Parameters​

ParameterRequiredDescription
fromYesAgent details — use user_contact_uri or user_id
toYesCustomer phone number in E.164 format
virtual_numberYesExoPhone to use for the call
recordingNoBoolean — enable call recording
recording_channelsNo"single" or "dual" channel recording
wait_audio_urlNoAudio URL to play while agent connects
max_time_limitNoMaximum call duration in seconds
attempt_time_outNoRing timeout in seconds
custom_fieldNoApplication-specific metadata
status_callbackNoArray of webhook event configurations

Status Callback Events​

EventDescription
answeredTriggered when the call is answered
terminalTriggered when the call ends

Response​

{
"call_sid": "unique_call_identifier",
"call_state": "active",
"assigned_agent_details": {
"user_id": "agent_uuid",
"contact_uri": "+919999999999"
},
"customer_details": {
"number": "+918888888888"
}
}
info

Only agents who are added as users on Exotel and are in available status can receive calls through this API.