Skip to main content

Campaign Call Details

Retrieve individual call records for a specific campaign.

Endpoint​

GET https://<api_key>:<api_token><subdomain>/v2/accounts/<account_sid>/campaigns/<campaign_id>/call-details

Query Parameters​

ParameterTypeDefaultDescription
offsetInteger0Zero-based record position
limitInteger20Records per page
statusString—Filter: completed, failed, busy, no-answer
sort_byString—date_created:asc or date_created:desc

cURL Example​

curl "https://<api_key>:<api_token>@api.exotel.com/v2/accounts/<sid>/campaigns/<campaign_id>/call-details?limit=50&status=completed"

Response​

{
"request_id": "req_abc123",
"http_code": 200,
"metadata": {
"count": 3,
"offset": 0,
"total": 150,
"limit": 50
},
"response": [
{
"number": "+919876543210",
"name": "Rahul Kumar",
"duration": 45,
"date_created": "2024-01-15T09:05:00+05:30",
"status": "completed",
"digit": "1",
"recording_url": "https://s3.amazonaws.com/...",
"start_time": "2024-01-15T09:05:02+05:30",
"end_time": "2024-01-15T09:05:47+05:30",
"caller_id": "0XXXXXX4890",
"direction": "Outgoing",
"call_sid": "call_abc123"
}
]
}

Response Fields​

FieldTypeDescription
numberStringRecipient phone number
nameStringContact name (if available from list)
durationIntegerCall duration in seconds
date_createdStringWhen the call was initiated
statusStringcompleted, failed, busy, no-answer
digitStringDTMF digit pressed during IVR (if applicable)
recording_urlStringCall recording URL
start_timeStringWhen the call started ringing
end_timeStringWhen the call ended
caller_idStringExoPhone used
directionStringOutgoing
call_sidStringUnique call identifier