Skip to main content

Call Details (v2)

Retrieve detailed information about a specific call made via the Voice v2 (CCM) API.

Endpoint​

GET /v2/accounts/<account_sid>/calls/<call_sid>

Regional URLs​

RegionURL
Singaporehttps://<api_key>:<api_token>@ccm-api.exotel.com/v2/accounts/<account_sid>/calls/<call_sid>
Mumbaihttps://<api_key>:<api_token>@ccm-api.in.exotel.com/v2/accounts/<account_sid>/calls/<call_sid>

Path Parameters​

ParameterRequiredDescription
call_sidYesThe unique call identifier from the Make Call response

Code Examples​

curl 'https://<api_key>:<api_token>@ccm-api.exotel.com/v2/accounts/<account_sid>/calls/<call_sid>'

Response​

{
"request_id": "req_abc123",
"method": "GET",
"http_code": 200,
"response": {
"call_details": {
"sid": "unique_call_identifier",
"direction": "outbound-api",
"virtual_number": "+911234567890",
"state": "terminal",
"status": "completed",
"assigned_agent_details": {
"user_id": "agent-uuid",
"contact_uri": "sip:agent@exotel.com"
},
"customer_details": {
"number": "+919876543210"
},
"created_time": "2024-06-15T10:30:00.000Z",
"updated_time": "2024-06-15T10:35:05.000Z",
"start_time": "2024-06-15T10:30:01.000Z",
"end_time": "2024-06-15T10:35:00.000Z",
"total_duration": 300,
"total_talk_time": 280,
"recording": {
"available": true,
"url": "https://s3-ap-southeast-1.amazonaws.com/.../recording.mp3"
},
"custom_field": "ticket_12345",
"legs": "/v2/accounts/<account_sid>/calls/<call_sid>/legs"
}
}
}

Response Fields​

FieldTypeDescription
sidStringUnique call identifier
directionStringinbound, outbound-dial, outbound-api
virtual_numberStringExoPhone used
stateStringactive or terminal
statusStringCall status (see below)
assigned_agent_detailsObjectAgent user_id and contact_uri
customer_detailsObjectCustomer phone number
created_timeDateTimeAPI request timestamp
updated_timeDateTimeLast status update
start_timeDateTimeCall start time
end_timeDateTimeCall end time
total_durationIntegerTotal duration in seconds
total_talk_timeIntegerCustomer conversation time in seconds
recordingObjectRecording availability and URL
custom_fieldStringCustom metadata
legsStringURL to fetch call leg details

Call States & Statuses​

States​

StateDescription
activeCall is ongoing or post-call processing pending
terminalCall completed and all data processed

Statuses​

StatusDescription
completedCall connected and ended normally
agent_unansweredAgent did not answer
customer_unansweredCustomer did not answer
agent_canceledAgent canceled the call
customer_no_dialCould not dial customer
agent_no_dialCould not dial agent

Try It​