End of call notifications (CDR):
At the end of an inbound or outbound call, a callback is sent to the configured webhook. This callback contains a Call Data Record for the call. To determine whether the notification is from an inbound call use the call_dir field of the payload.
Values
Field | Type | Description |
type | string | The type of notification |
Payload Data | ||
call_id | integer | The ID of the call. |
phone_number | string | The external phone number of the call. |
caller_id | string | The phone number that was displayed or dialed. |
reference_id | string | The external reference ID of the call. |
call_direction | string | The direction of the call. |
dispostion_code | string | The disposition code of the call. |
cause_value | integer | TBA |
user_id | integer | The ID of the user. |
campaign_id | integer | The ID of the campaign. |
list_id | integer | The ID of the list. |
call_type | integer | The type of call. |
recording_url | string | The name of the call recording file. |
start_date_time | DateTime | The start date and time of the call. |
end_time_time | DateTime | The end date and time of the call. |
ivr_time | integer | The time the callee spent in the IVR. |
ring_time | integer | The total ring duration of the call. |
talk_time | integer | The total talk duration of the call. |
user_time | integer | TBA |
hold_time | integer | The total hold duration of the call. |
wrapup_time | integer | The total wrapup duration of the call. |