Skip to main content

Configure webhooks

Webhooks send an HTTP notification from DialerAI to an endpoint you control when an event occurs. They are useful for updating a CRM, storing call activity, starting a follow-up workflow, or building your own reporting.

The Webhook Endpoints page is where you monitor existing endpoints, their event type, activation state, recent delivery totals, and available actions.

Webhook Endpoints listing, including New Webhook Endpoint, delivery status, recent activity, and Edit action

Before you begin​

Prepare:

  • An HTTPS endpoint that accepts POST requests.
  • The event types your integration needs.
  • An authentication method and secret, if your endpoint requires one.
  • A test event receiver or staging endpoint for verification.

Create an endpoint​

  1. Open Webhook → Webhook Endpoints.
  2. Select New Webhook Endpoint.
  3. Enter the Endpoint URL and an optional description.
  4. Select one or more Event types.
  5. Choose an authentication method and complete the related fields.
  6. Set retry options, then select Save.
  7. Leave Activated enabled when you are ready to receive events.

Only one active endpoint can be configured for each event type in an organization. If an event is already assigned to another active endpoint, deactivate or edit that endpoint first.

The edit form groups the endpoint details, event selection, CDR options, retry controls, and authentication in one place.

Webhook endpoint edit form showing activation, endpoint URL, description, event type, Flow Session attachment, and condition processing

Event types​

EventSent when
CDR CreatedA call detail record is created after a call.
Message CreatedAn SMS, MMS, or other message record is created.
Flow Session CreatedA flow session is created for a call or message interaction.
callcenter.queue_call.endedA caller leaves a call-center queue: the answered call is over, or the caller abandoned, timed out, found no agent, or pressed an exit key.
callcenter.agent.status_changedAn agent becomes available, goes on standby, goes on a break (with its reason), or logs out.
callcenter.callback.changedA callback is scheduled, rescheduled, reassigned, done, or cancelled.
callcenter.callback.overdueA pending callback is 15 minutes past its time.
callcenter.supervision.reviewedA supervisor saves or changes the review of a call they supervised.

Select only the events your integration needs. This reduces traffic and keeps downstream processing easier to operate.

CDR-specific options​

These settings apply to CDR Created events:

  • Attach Flow Session info to CDR payload includes the related flow session and its logs.
  • Condition Processing filters which CDR events are sent:
    • No condition
    • Call duration greater than 20, 40, 60, or 80 seconds
    • Only answered calls
    • Only failed calls

Start with no condition while testing. Add a filter only after confirming that the receiving system handles the expected event shape.

Authentication methods​

Choose the method that matches your receiving service:

MethodRequired valuesUse when
NoneNoneThe endpoint is protected another way, or only used for local testing.
BasicUsername and passwordYour service expects HTTP Basic Authentication.
BearerTokenYour service expects an Authorization: Bearer ... token.
SignatureSigning secretYour service verifies an HMAC-SHA256 signature.

Keep credentials and signing secrets private. Use HTTPS and rotate secrets according to your security policy. Once saved, a password, token, or signing secret is never shown again: the edit page says Stored, with Replace to enter a new one. Choosing another authentication method clears the stored secret.

Retries and backoff​

The endpoint form includes:

  • Max attempts: how many delivery attempts DialerAI makes, from 1 to 3.
  • Backoff timeout: how long DialerAI waits before retrying, from 60 to 3,600 seconds.

Return a successful HTTP response as soon as your endpoint has safely accepted the event. Process slow work asynchronously so transient timeouts do not cause unnecessary retries.

Payloads​

Every delivery is an HTTP POST with a JSON body that shares the same envelope, regardless of event type:

FieldDescription
eventThe event type, for example cdr.created, message.created, or flow_session.created. Some deliveries use event_type instead of event: check for both.
timestampWhen the webhook was sent, in ISO 8601 format.
webhook_uuidA unique identifier for this delivery. Store it to detect and discard duplicate deliveries caused by retries.
countThe number of items in data.
dataAn array of event records. Each event type has its own record shape, described below.

Treat payloads as versioned input: ignore fields you do not need, tolerate new fields appearing over time, and key your own storage on the event's identifier (cdr_id, message_id, or flow_session_id) rather than on delivery order.

CDR Created (cdr.created)​

Sent when a call detail record is created after a call. Fields cover call identity, timing, cost, disposition, and links to the related campaign, contact, and flow session.

FieldDescription
org_idYour organization identifier.
cdr_idUnique identifier for the CDR.
call_uuidUnique identifier for the call leg.
callerid_numberThe caller ID number presented on the call.
phone_numberThe number dialed or that dialed in.
starting_dateWhen the call started.
call_session_durationTotal session duration, in seconds.
pddPost-dial delay before the call was answered.
billsecBillable duration, in seconds.
incr_billed_durationDuration billed after increment rounding.
call_costCost of the call.
hangup_cause_q850The Q.850 hangup cause code.
call_statusThe call's final status or status code.
leg_typeWhich leg of the call this record represents, for example A-Leg or B-Leg.
amd_status / amd_status_displayAnswering machine detection result and its display label.
amd_causeReason code from answering machine detection, when available.
directioninbound or outbound.
call_campaign_idThe call campaign that placed or received the call.
flow_session_idThe flow session that handled the call, if any.
contact_idThe contact associated with the call.
call_router_idThe call router used for the call.
count_attemptWhich attempt number this call represents for the contact.
call_recording_fullpathServer path to the call recording, if recording was enabled.
incall_dispositionThe in-call disposition code set during the call, if any.
Show example
{
"event": "cdr.created",
"timestamp": "2025-01-01T12:34:56Z",
"webhook_uuid": "123e4567-e89b-12d3-a456-426614174000",
"count": 1,
"data": [
{
"org_id": "org_BZPKMXKQVXVJR",
"cdr_id": "123",
"call_uuid": "123e4567-e89b-12d3-a456-426614174001",
"callerid_number": "+1234567890",
"phone_number": "+0987654321",
"starting_date": "2025-01-01T12:00:00Z",
"call_session_duration": "50",
"pdd": "100 ms",
"billsec": "300 seconds",
"incr_billed_duration": "5 minutes",
"call_cost": "$0.50",
"hangup_cause_q850": "16",
"call_status": "completed",
"leg_type": "outbound",
"amd_status": "machine",
"amd_cause": "detected",
"direction": "outbound",
"call_campaign_id": "campaign123",
"flow_session_id": "session123",
"contact_id": "contact123",
"call_router_id": "router123",
"count_attempt": 1,
"call_recording_fullpath": "/recordings/bleg123.wav"
}
]
}

CDR Created with Flow Session attached​

When Attach Flow Session info to CDR payload is enabled on the endpoint, each CDR record includes a nested flow_session object with the complete flow session and its flow_logs: one entry per node the call passed through, in execution order.

FieldDescription
flow_session.flow_session_idUnique identifier for the flow session.
flow_session.campaign_idThe campaign that started the flow.
flow_session.contact_idThe contact that went through the flow.
flow_session.recipient / flow_session.senderThe two numbers involved in the interaction.
flow_session.current_node / flow_session.current_node_typeThe node where the session currently is, or ended.
flow_session.created_date / flow_session.updated_dateWhen the session started and was last updated.
flow_session.flow_logs[].idUnique identifier for the log entry.
flow_session.flow_logs[].orderExecution order of the node within the session, starting at 0.
flow_session.flow_logs[].node_name / node_typeThe node's name and type, for example call-transfer-node. See Flow nodes for the full list of node types.
flow_session.flow_logs[].created_dateWhen the node executed.
flow_session.flow_logs[].action_resultThe node's outcome. Shape varies per node type: see the per-node examples in Flow Session Created below.
Show example
{
"event_type": "cdr.created",
"timestamp": "2026-01-13T13:12:21.730566+00:00",
"webhook_uuid": "cac45a81-a183-45c0-b4e7-4beaad4c7b4a",
"count": 1,
"data": [
{
"cdr_id": "call_0FJUDJ9YE6",
"org_id": "org_KC557UP61M",
"call_uuid": "7e979950-f081-11f0-98f9-d9316ccb879d",
"callerid_number": "+16267727810",
"phone_number": "+12065550191",
"starting_date": "2026-01-10T19:36:21.377194+00:00",
"call_session_duration": 9,
"billsec": 7,
"incr_billed_duration": 12,
"call_cost": "0.02000",
"hangup_cause_q850": 16,
"call_status": 16,
"leg_type": "B-Leg",
"amd_status": 2,
"amd_status_display": "MACHINE",
"amd_cause": null,
"direction": "INBOUND",
"call_campaign_id": "callcp_JXQEY0QTLH",
"flow_session_id": "fls_DPXR4N8JF2",
"contact_id": "ct_ILB93OAOT0",
"call_router_id": "callr_KC557UP61M",
"count_attempt": 1,
"pdd": 0,
"call_recording_fullpath": "/data-recording/org_KC557UP61M/call/call_session_2_channels.wav",
"incall_disposition": 1,
"flow_session": {
"flow_session_id": "fls_DPXR4N8JF2",
"org_id": "org_KC557UP61M",
"campaign_id": "callcp_JXQEY0QTLH",
"contact_id": "ct_ILB93OAOT0",
"recipient": "+16267727810",
"sender": "+12065550191",
"current_node": "trigger-end",
"current_node_type": "end-node",
"created_date": "2026-01-13T13:12:21.377457+00:00",
"updated_date": "2026-01-13T13:12:21.377459+00:00",
"flow_logs": [
{
"id": 2317,
"order": 0,
"node_name": "basic-asr-node-0",
"node_type": "basic-asr-node",
"created_date": "2026-01-13T13:12:21.378333+00:00",
"node_inner_state": 0,
"action_result": { "result": "failed" }
},
{
"id": 2318,
"order": 1,
"node_name": "end-node-1",
"node_type": "end-node",
"created_date": "2026-01-13T13:12:21.378344+00:00",
"node_inner_state": 0,
"action_result": { "result": "failed" }
},
{
"id": 2319,
"order": 2,
"node_name": "starter-node-2",
"node_type": "starter-node",
"created_date": "2026-01-13T13:12:21.378353+00:00",
"node_inner_state": 0,
"action_result": { "result": "failed" }
},
{
"id": 2320,
"order": 3,
"node_name": "call-transfer-node-3",
"node_type": "call-transfer-node",
"created_date": "2026-01-13T13:12:21.378362+00:00",
"node_inner_state": 0,
"action_result": { "result": "failed" }
},
{
"id": 2321,
"order": 4,
"node_name": "end-node-4",
"node_type": "end-node",
"created_date": "2026-01-13T13:12:21.378372+00:00",
"node_inner_state": 0,
"action_result": { "result": "success" }
},
{
"id": 2322,
"order": 5,
"node_name": "record-audio-node-5",
"node_type": "record-audio-node",
"created_date": "2026-01-13T13:12:21.378380+00:00",
"node_inner_state": 0,
"action_result": { "result": "failed" }
},
{
"id": 2323,
"order": 6,
"node_name": "starter-node-6",
"node_type": "starter-node",
"created_date": "2026-01-13T13:12:21.378389+00:00",
"node_inner_state": 0,
"action_result": { "result": "success" }
},
{
"id": 2324,
"order": 7,
"node_name": "basic-asr-node-7",
"node_type": "basic-asr-node",
"created_date": "2026-01-13T13:12:21.378398+00:00",
"node_inner_state": 0,
"action_result": { "result": "failed" }
}
]
}
}
]
}

Flow Session Created (flow_session.created)​

Sent when a flow session is created for a call or message interaction. The flow_logs array records every node the session passed through, in order, each with a node-specific action_result. Use this event when you need flow execution detail without waiting for the CDR.

FieldDescription
org_idYour organization identifier.
flow_session_idUnique identifier for the flow session.
campaign_idThe campaign that started the flow.
contact_idThe contact that went through the flow.
recipient / senderThe two numbers involved in the interaction.
current_node / current_node_typeThe node where the session currently is, or ended.
created_date / updated_dateWhen the session started and was last updated.
flow_logs[].id / orderLog entry identifier and execution order, starting at 1.
flow_logs[].node_name / node_typeThe node's name and type. See Flow nodes for the full list.
flow_logs[].node_inner_stateThe node's internal state label at the time of logging, for example init or enter.
flow_logs[].action_result.resultA short outcome label specific to the node type, for example a detected language, SUCCESS, or a free-text result.
flow_logs[].action_result.infoNode-specific detail. A speech-recognition node includes the ASR match and any recording; a call-transfer node includes bridge and hangup details; a record-audio node includes the recording path, size, and duration.
Show example
{
"event": "flow_session.created",
"timestamp": "2025-01-01T12:34:56Z",
"webhook_uuid": "123e4567-e89b-12d3-a456-426614174010",
"count": 1,
"data": [
{
"org_id": "org_BZPKMXKQVXVJR",
"flow_session_id": "fls_ABC123XYZ",
"campaign_id": "callcp_123456",
"contact_id": "ct_78910",
"recipient": "+1234567890",
"sender": "+0987654321",
"current_node": "start",
"current_node_type": "entry",
"created_date": "2025-01-01T12:00:00Z",
"updated_date": "2025-01-01T12:05:00Z",
"flow_logs": [
{
"id": 1,
"order": 1,
"created_date": "2025-01-01T12:00:01Z",
"node_name": "starter",
"node_type": "starter-node",
"node_inner_state": "init",
"action_result": {
"result": "Started",
"info": {}
}
},
{
"id": 2,
"order": 2,
"created_date": "2025-01-01T12:00:10Z",
"node_name": "speech_recognition_13k3",
"node_type": "basic-asr-node",
"node_inner_state": "enter",
"action_result": {
"result": "french",
"info": {
"asr_result": {
"lang": "fr-FR",
"condition": "french",
"word_matched": "Franc",
"text_detected": "Français.",
"confidence_score": 89
},
"audio_tts_played": "Play TTS Message - ou vous preferez en Francais?",
"recording_filename": "vm-that_was_an_invalid_ext.wav",
"recording_fullpath": "/data-recording/org_KC557UP61M/call/vm-that_was_an_invalid_ext.wav",
"recording_file_size": "55404",
"recording_duration_sec": "9",
"detect_silence_timeout": "false"
}
}
},
{
"id": 3,
"order": 3,
"created_date": "2025-01-01T12:00:20Z",
"node_name": "call_transfer_52ox",
"node_type": "call-transfer-node",
"node_inner_state": "enter",
"action_result": {
"result": "SUCCESS",
"info": {
"bridge_data": "{ignore_early_media=true,instant_ringback=true,hangup_after_bridge=false,continue_on_fail=true,origination_privacy=false,sofia_suppress_url_encoding=true,media_bug_answer_req=true,origination_caller_id_number=,origination_caller_id_name=,originate_timeout=30,leg_timeout=30,legtype=bleg,leg_type=2,org_id=1,contact_id=11,flow_session_id=4519,flow_id=1,call_router_id=1,execute_on_answer_2='sched_hangup +7200 ALLOTTED_TIMEOUT',call_gateway_id=1,}[originate_bleg_call=true,]sofia/gateway/sipp/+18004444444",
"bridge_uuid": "111b922e-c834-4a3c-8d93-b2946a4d3973",
"hangup_cause": null,
"audio_tts_played": "Play Ringback - http_cache://http://prod.dialer.ai/voice_fsm_fastapi/tts_cache/AzureTTS-78746395a95643c399cdb58f40078507-en-US-JennyMultilingualNeural.wav / Transfer to: to:['+18004444444']",
"recording_filename": "bleg_rec_ct_NXGDQVNDVKPWA_pn_+34650784355__uuid_113aceff-0810-421a-a4e5-ffe665540879.mp3",
"recording_fullpath": "/data-recording/1/09-08-2024/bleg_rec_ct_NXGDQVNDVKPWA_pn_+34650784355__uuid_113aceff-0810-421a-a4e5-ffe665540879.mp3",
"bridge_hangup_cause": "NORMAL_CLEARING",
"endpoint_disposition": "ANSWER",
"originate_disposition": "SUCCESS"
}
}
},
{
"id": 4,
"order": 4,
"created_date": "2025-01-01T12:00:30Z",
"node_name": "record_audio_cu6y",
"node_type": "record-audio-node",
"node_inner_state": "enter",
"action_result": {
"result": "Audio recorded",
"info": {
"recording_fullpath": "/data-recording/org_BZPKMXKQVXVJR/22-07-2024/recording-org_BZPKMXKQVXVJR_pn_+34650781115_ct_PZBXRQVXPQMDN.mp3",
"audio_tts_played": "Play TTS Message - Please, leave your review after the beep, your message can be at a maximum 60 seconds long.",
"recording_file_size": "8192",
"recording_filename": "recording-org_BZPKMXKQVXVJR_pn_+34650784355_ct_PZBXRQVXPQMDN.mp3",
"recording_duration_ms": "5280",
"recording_duration_sec": "6"
}
}
}
]
}
]
}

Message Created (message.created)​

Sent when an SMS, MMS, or other message record is created.

FieldDescription
org_idYour organization identifier.
message_idUnique identifier for the message.
uuidUnique identifier for the message event.
directioninbound or outbound.
sender / recipientThe two numbers or addresses involved.
channel_typeThe messaging channel, for example SMS or MMS.
message_campaignThe message campaign that sent or received the message.
contentThe message body.
number_segmentHow many SMS segments the message was split into.
delivery_dateWhen the carrier confirmed delivery.
cost / rateWhat the message cost and the rate applied.
media_count / media_urlsNumber of attached media items and their URLs, for MMS.
created_date / send_dateWhen the message record was created and when it was sent.
status / status_messageThe delivery status and a human-readable description.
count_replies / repliesHow many replies were received and their detail, for two-way messaging.
parent_messageThe message this one replies to, if any.
message_router_idThe message router used to send the message.
Show example
{
"event": "message.created",
"timestamp": "2025-01-01T12:34:56Z",
"webhook_uuid": "123e4567-e89b-12d3-a456-426614174002",
"count": 1,
"data": [
{
"org_id": "org_BZPKMXKQVXVJR",
"message_id": "msg_123",
"uuid": "123e4567-e89b-12d3-a456-426614174003",
"direction": "outbound",
"sender": "+1234567890",
"recipient": "+0987654321",
"channel_type": "SMS",
"message_campaign": "campaign123",
"content": "Hello, this is a test message.",
"number_segment": "1",
"delivery_date": "2025-01-01T12:00:00Z",
"cost": "0.05",
"rate": "0.05",
"media_count": 0,
"media_urls": [],
"created_date": "2025-01-01T11:00:00Z",
"send_date": "2025-01-01T11:05:00Z",
"status": "delivered",
"count_replies": 0,
"replies": [],
"parent_message": null,
"status_message": "Message delivered successfully",
"message_router_id": "router123"
}
]
}

Call-center events​

The five callcenter.* events share the envelope {"event_type", "timestamp", "webhook_uuid", "count": 1, "data": [...]}, with one object in data:

Eventdata[0] contains
callcenter.queue_call.endedThe queue call: its identifiers, the queue, the outcome, the waiting and talk times, the agent, the caller, the contact, the campaign, and attempts, every agent it was offered to.
callcenter.agent.status_changedThe agent's ID and name, the new status and its label, the break_reason with its name and color (or null), and changed_at.
callcenter.callback.changedThe callback: its ID, the change (scheduled, updated, done, or cancelled), its status, when it is scheduled, the assigned agent, the queue, the contact, the note, and who made the change.
callcenter.callback.overdueThe same callback object.
callcenter.supervision.reviewedThe supervision: the agent, the supervisor, the modes, the start, end, and duration, the call, and the review's rating, tags, and comment.

Queue calls and agent statuses are delivered within about 20 seconds of the event. Callbacks and reviews are sent as soon as they are saved. The agent's moment-to-moment state (ringing, on a call, wrapping up) is not sent as a webhook, since it changes several times per call: read it from the Call Center API instead.

Monitor delivery​

The endpoint list shows whether each endpoint is Activated or Deactivated, its event types, retry settings, and recent delivery totals. Use the last-seven-days summary to spot failures or a sudden drop in expected events.

If you need to stop deliveries temporarily, edit the endpoint and turn off Activated. Re-enable it after testing.

Review the webhook report​

Open Webhook → Webhook Report to inspect every delivery for your organization. The report includes:

Webhook Report showing delivery records, status, attempts, filters, and delivery-volume charts

  • Processing status: Pending, Processing, Done, Error, or Disabled.
  • Attempts and Next attempt: the number of tries and the next scheduled retry.
  • Last HTTP status: the response code returned by your endpoint.
  • Details: the complete request and response payload for an individual delivery.
  • Status by day (or Status by hour for a short period), Daily report (or Hourly report), and Heatmap tabs: delivery volume and outcomes over time.

Use the report to distinguish an endpoint configuration problem from a temporary receiver outage. An Error after all attempts means the event was not accepted successfully and should be investigated before replaying work in your own system.

Troubleshooting​

  • No events arrive: confirm the endpoint is activated, the event type is selected, and a matching call, message, or flow session has been created.
  • Authentication failures: compare the configured method and credentials with the receiver’s logs. Rotate and re-enter secrets if necessary.
  • Repeated deliveries: return a success response quickly and make the handler idempotent. Retries can occur after timeouts or non-success responses.
  • Too many CDR events: use Condition Processing to restrict events by duration or call result.
  • Payload is missing flow details: enable Attach Flow Session info to CDR payload and test with a new call.

For debugging, point a test endpoint at a request inspector or staging service. Never send production customer data to a third-party inspector without approval.