Skip to main content
Dialer events tell you what happened on a call placed by a Dialer campaign: the disposition the user recorded and, when the campaign uses one, the survey they filled in. Both events carry the campaign, the contact, and the user, so you can update your CRM without a follow-up API call. These are account-level webhooks, delivered to the endpoints you register under Settings → Webhooks. See the overview. Dialer events require the Dialer add-on. Neither event carries call details such as duration or recording: join on 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 same dialer 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:
  1. On each dialer.disposition_created event, read contact_state.state. pending means the contact is waiting for a first attempt or a retry, and scheduled means a callback is planned. Every other state means the Dialer won’t call the contact again in this campaign, unless an excluded contact gets one of the campaign’s target tags back.
  2. Call Get a campaign’s statistics for the campaign in dialer.campaign.id. When contact_states_dialable.pending and contact_states_dialable.scheduled are both 0, nothing is left to dial. Use contact_states_dialable rather than contact_states: contact_states also counts contacts without a phone number, which the Dialer never calls. Both blocks show the contacts’ current states, even when you pass dateFrom and dateTo. A contact an agent is calling right now still counts as pending.
  3. To check only what is dialable right now, call Peek at the next contacts to be dialed. It returns 200 with 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.
Campaign membership is defined by the campaign’s target tags. Tagging more contacts with a target tag adds them to the campaign, so the queue can fill up again.