call_uuid with call.ended or fetch the call from the API.
All examples show the full request body, including the envelope. Fields with empty values are omitted from payloads: they are never sent as null. Fields shown in bold are always present. A bold field nested inside an optional object is always present whenever that object is. Everything else is optional.
The dialer object
Both events carry the samedialer object identifying the campaign:
dialer.disposition_created
Fires when a user records a disposition on a Dialer call: the outcome they chose, their note, the number that was dialed, and what the campaign will do with the contact next. Use it to log call outcomes in your CRM, create follow-up tasks for rescheduled calls, or suppress contacts who asked not to be called again.Example
dialer.survey_filled
Fires when a user submits a survey response on a Dialer call. The payload carries every answer in full, together with the disposition the response belongs to. Use it to push qualification answers into your CRM or trigger workflows on specific responses.Example
A survey can be submitted before or after the disposition on the same call, and the two events can arrive in either order. Correlate them on
call_uuid, or on survey.response_id and disposition.survey_response_id when both are present.Detecting when a campaign runs out of contacts
Dialer events fire per call, not per campaign. CloudTalk doesn’t send a webhook when a campaign has no more contacts to dial. To detect it, combine the events with the Dialer API:- On each
dialer.disposition_createdevent, readcontact_state.state.pendingmeans the contact is waiting for a first attempt or a retry, andscheduledmeans a callback is planned. Every other state means the Dialer won’t call the contact again in this campaign, unless anexcludedcontact gets one of the campaign’s target tags back. - Call Get a campaign’s statistics for the campaign in
dialer.campaign.id. Whencontact_states_dialable.pendingandcontact_states_dialable.scheduledare both0, nothing is left to dial. Usecontact_states_dialablerather thancontact_states:contact_statesalso counts contacts without a phone number, which the Dialer never calls. Both blocks show the contacts’ current states, even when you passdateFromanddateTo. A contact an agent is calling right now still counts aspending. - To check only what is dialable right now, call Peek at the next contacts to be dialed. It returns
200with an empty array when the queue is empty. An empty array doesn’t mean the campaign is finished: contacts whose next attempt is in the future, such as retries and scheduled callbacks, aren’t included, and neither are contacts an agent is already calling, callbacks assigned to a specific agent, or any contacts while the campaign isn’t active.