Event type:
CallEndedSent every time a call made by a campaign ends, whatever its result. The payload contains the call details: the number called and its variable values, the ring and answer results, durations, the results of the interactions with the recipient (such as DTMF inputs or AI agent goals), transfer details, and the final outcome of the call, including when it will be retried.
This is the event to use to update your own systems, such as a CRM, with the result of every call.
Possible values for the enums used in the payload:
Ring result
AnswerBusyNoAnswerCallErrorAnswer type
HumanMachineVoicemailMessageUnknownEnd type
HangUpCallflowCompleteExecutionErrorLast action type
TransferCallTextPromptWavPromptDtmfInputDropCallTransfer result
ConnectedNotConnectedOutcome
SuccessFailureWithNoRetryLeftFailureWithRetryPendingCallEnded payload (v2)
{
"id": "01928322-860c-77f9-9c3b-7f8abe3b6afd",
"object": "event",
"apiVersion": 2,
"createdAt": "2024-10-12T23:48:50.824",
"type": "CallEnded",
"data": {
"customer": {
"id": "0192830c-58a0-7be2-8e3d-dc8997d0a631",
"name": "SIP Caller (Demo account)"
},
"campaign": {
"id": "0192831a-fbbe-735f-b385-a3252781817d",
"name": "Campaign 1",
"varNames": [
"Customer Name",
"Due Balance"
]
},
"callDetails": {
"callId": "01928322-32a3-7000-bf0d-bf1af7eda4c5",
"numberId": 1048165,
"prefix": "",
"number": "18035551004",
"calledNumber": "18035551004",
"varValues": [
"Stefan Robertson",
"$99.00 "
],
"attempt": 1,
"addedAt": "2024-10-12T10:05:23.452",
"phoneSystem": {
"id": "01928310-2d96-7a70-bdfc-4bcd24c22c95",
"name": "My Phone System",
"extension": {
"id": "07bcd1de-1e5d-47b5-99bf-b846c7a12f09",
"name": "SIP Caller Extension"
}
},
"queueId": "800",
"agentId": "101",
"timeZoneId": "America/Argentina/Buenos_Aires",
"startedAt": "2024-10-12T23:48:29.479",
"ringResult": "Answer",
"sipResponse": {
"code": 200,
"descrip": "OK"
},
"answeredAt": "2024-10-12T23:48:33.735",
"answerType": "Human",
"answerMessage": null,
"voicemailLeft": false,
"callflow": {
"id": "01928316-cfd7-75c7-bb6d-9128e205c53f",
"name": "Survey"
},
"endedAt": "2024-10-12T23:48:50.819",
"endType": "CallflowComplete",
"lastAction": {
"id": "535248e9-c9a2-4a15-8c1c-9d175f82ac21",
"type": "TextPrompt"
},
"duration": {
"setup": "00:00:04.256",
"connected": "00:00:17.084",
"total": "00:00:21.34"
},
"interactionResults": [
{
"id": "a6d5b2e5-6b3f-49d8-aaa3-bc7b4c693f05",
"type": "DtmfInput",
"label": "Question 1",
"value": "1"
},
{
"id": "af5fd8d6-2ed4-4546-bb50-1b4214b71f7a",
"type": "DtmfInput",
"label": "Question 2",
"value": "2"
}
],
"transfer": {
"duration": "00:00:51.877",
"result": "NotConnected",
"connectedAt": null
},
"agent": {
"releasedAt": "2025-09-17T21:00:25.94",
"duration": {
"setup": "00:00:58.716",
"connected": "00:00:00",
"total": "00:00:58.716"
}
},
"outcome": "Success",
"retryAt": null
}
}
}