call.* (Call Events)
DEP sends seven webhook events for the WhatsApp Business voice call lifecycle (call.ringing, call.answered, call.ended, call.missed, call.declined, call.failed, and call.permission.updated). Register the event names explicitly in your webhook endpoint configuration in Developer → Webhooks.
Event List & When They Are Sent
Section titled “Event List & When They Are Sent”| Event | When It Is Sent |
|---|---|
call.ringing | A new inbound call (inbound) arrives from a customer, or an outbound call (outbound) starts ringing on the destination device. |
call.answered | An agent answers an inbound call, or a customer picks up an outbound call. (In B2BUA/queue mode, hold music does not trigger call.answered until the agent is actually connected). |
call.ended | A call that has been answered by the agent/customer ends normally (outcome = "answered"). |
call.missed | Call ended without ever connecting to an agent (outcome = "missed"), including queue timeout (queue_timeout) or disconnect before the agent picked up. |
call.declined | Call explicitly rejected by the agent or recipient (outcome = "declined", for example rejected, USER_DECLINED, or busy). |
call.failed | Call failed due to network/platform constraints or Meta policy rejection (outcome = "failed"). |
call.permission.updated | The status of the outbound call permission to the customer changed (request sent, approved/rejected by the customer, automatically revoked after the consecutive unanswered call limit, or the customer sent a stop/start keyword). |
Security, Delivery & Idempotency
Section titled “Security, Delivery & Idempotency”- Signature Header: Every HTTP
POSTrequest includes the headerX-Mahadata-Signature-256containingsha256=<hex_hmac>computed over the raw body using the webhook endpoint’ssecret. - At-Least-Once Delivery: If your server returns a non-2xx status or times out, the system will retry delivery with exponential backoff.
- Idempotency (
event_id): Each event has a deterministicevent_id(UUID v5 ofcall.idand theeventname). Store processedevent_idvalues so that resending becomes a no-op on your system side. - Payload Security: Public payloads never contain WebRTC SDP, access tokens, or internal storage object keys. To download a recording when
recording_available: true, call the endpointGET /v1/calls/{id}/recording.
call Field Structure
Section titled “call Field Structure”| Field | Type | Description |
|---|---|---|
id | UUID | Unique ID of the call log on the platform |
wa_call_id | string | Call session ID from WhatsApp |
direction | string | "inbound" (customer calls the business) or "outbound" (business calls the customer) |
business_phone | string | Business WhatsApp number (E.164/digits) |
business_phone_id | UUID | ID of the business WhatsApp number on the platform |
customer_phone | string | Customer WhatsApp number |
status | string | Latest internal status (ringing, answered, ended, missed, failed) |
outcome | string | Final call outcome (in_progress, answered, missed, declined, failed) |
end_reason | string | null | End reason (hangup, rejected, queue_timeout, ivr_hangup, stale_timeout, etc.) |
duration_seconds | integer | Talk duration in seconds |
started_at | string (RFC3339) | null | Time the call was connected |
answered_at | string (RFC3339) | null | Explicit answer time if available |
ended_at | string (RFC3339) | null | Time the call ended |
created_at | string (RFC3339) | Time the call log was created |
queue_id | UUID | null | Call queue ID (if routed to a queue) |
agent | object | null | { "id": "<uuid>", "name": "<agent name>" } if agent connected |
conversation_id | UUID | null | Related omnichannel conversation ID |
contact_id | UUID | null | Customer contact ID |
contact_name | string | null | Customer contact name |
disposition | string | null | Post-call disposition code label |
recording_available | boolean | true if recording is available via GET /v1/calls/{id}/recording |
entry | object | null | { "kind": "call_button" | "deeplink", "payload": "<optional>" } if the inbound call started from an interactive call button/template or a WhatsApp call link |
Example Payload per Event
Section titled “Example Payload per Event”1. call.ringing
Section titled “1. call.ringing”{ "event": "call.ringing", "event_id": "2c8b02d3-4b88-58f6-9e77-8a14d001b101", "occurred_at": "2026-10-24T10:15:00+00:00", "call": { "id": "0192be10-4400-7000-8000-000000000001", "wa_call_id": "wacid.HBgNNjI4MTIzNDU2Nzg5MBUCABIYFDNB", "direction": "inbound", "business_phone": "622150991000", "business_phone_id": "11111111-2222-4333-8444-555555555555", "customer_phone": "6281234567890", "status": "ringing", "outcome": "in_progress", "end_reason": null, "duration_seconds": 0, "started_at": null, "answered_at": null, "ended_at": null, "created_at": "2026-10-24T10:15:00Z", "queue_id": "aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee", "agent": null, "conversation_id": "99999999-8888-4777-8666-555555555555", "contact_id": "77777777-6666-4555-8444-333333333333", "contact_name": "Budi Santoso", "disposition": null, "recording_available": false }}2. call.answered
Section titled “2. call.answered”{ "event": "call.answered", "event_id": "4e12f9c0-7a11-5c92-8b30-9f22d001b102", "occurred_at": "2026-10-24T10:15:06+00:00", "call": { "id": "0192be10-4400-7000-8000-000000000001", "wa_call_id": "wacid.HBgNNjI4MTIzNDU2Nzg5MBUCABIYFDNB", "direction": "inbound", "business_phone": "622150991000", "business_phone_id": "11111111-2222-4333-8444-555555555555", "customer_phone": "6281234567890", "status": "answered", "outcome": "in_progress", "end_reason": null, "duration_seconds": 0, "started_at": "2026-10-24T10:15:06Z", "answered_at": null, "ended_at": null, "created_at": "2026-10-24T10:15:00Z", "queue_id": "aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee", "agent": { "id": "22222222-3333-4444-8555-666666666666", "name": "Siti Aminah" }, "conversation_id": "99999999-8888-4777-8666-555555555555", "contact_id": "77777777-6666-4555-8444-333333333333", "contact_name": "Budi Santoso", "disposition": null, "recording_available": false }}3. call.ended
Section titled “3. call.ended”{ "event": "call.ended", "event_id": "8a44e110-12c4-5d01-a122-3c44d001b103", "occurred_at": "2026-10-24T10:17:10+00:00", "call": { "id": "0192be10-4400-7000-8000-000000000001", "wa_call_id": "wacid.HBgNNjI4MTIzNDU2Nzg5MBUCABIYFDNB", "direction": "inbound", "business_phone": "622150991000", "business_phone_id": "11111111-2222-4333-8444-555555555555", "customer_phone": "6281234567890", "status": "ended", "outcome": "answered", "end_reason": "hangup", "duration_seconds": 124, "started_at": "2026-10-24T10:15:06Z", "answered_at": null, "ended_at": "2026-10-24T10:17:10Z", "created_at": "2026-10-24T10:15:00Z", "queue_id": "aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee", "agent": { "id": "22222222-3333-4444-8555-666666666666", "name": "Siti Aminah" }, "conversation_id": "99999999-8888-4777-8666-555555555555", "contact_id": "77777777-6666-4555-8444-333333333333", "contact_name": "Budi Santoso", "disposition": "Solved", "recording_available": true }}4. call.missed
Section titled “4. call.missed”{ "event": "call.missed", "event_id": "1f90c321-65b1-5a88-9012-7e55d001b104", "occurred_at": "2026-10-24T10:20:00+00:00", "call": { "id": "0192be10-4400-7000-8000-000000000002", "wa_call_id": "wacid.HBgNNjI4MTIzNDU2Nzg5MBUCABIYFDNC", "direction": "inbound", "business_phone": "622150991000", "business_phone_id": "11111111-2222-4333-8444-555555555555", "customer_phone": "6281234567890", "status": "missed", "outcome": "missed", "end_reason": "queue_timeout", "duration_seconds": 0, "started_at": null, "answered_at": null, "ended_at": "2026-10-24T10:20:00Z", "created_at": "2026-10-24T10:15:00Z", "queue_id": "aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee", "agent": null, "conversation_id": "99999999-8888-4777-8666-555555555555", "contact_id": "77777777-6666-4555-8444-333333333333", "contact_name": "Budi Santoso", "disposition": null, "recording_available": false }}5. call.declined
Section titled “5. call.declined”{ "event": "call.declined", "event_id": "5b77a810-33d2-5f10-8111-4d66d001b105", "occurred_at": "2026-10-24T10:22:12+00:00", "call": { "id": "0192be10-4400-7000-8000-000000000003", "wa_call_id": "wacid.HBgNNjI4MTIzNDU2Nzg5MBUCABIYFDND", "direction": "inbound", "business_phone": "622150991000", "business_phone_id": "11111111-2222-4333-8444-555555555555", "customer_phone": "6281234567890", "status": "ended", "outcome": "declined", "end_reason": "rejected", "duration_seconds": 0, "started_at": null, "answered_at": null, "ended_at": "2026-10-24T10:22:12Z", "created_at": "2026-10-24T10:22:00Z", "queue_id": "aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee", "agent": null, "conversation_id": "99999999-8888-4777-8666-555555555555", "contact_id": "77777777-6666-4555-8444-333333333333", "contact_name": "Budi Santoso", "disposition": null, "recording_available": false }}6. call.failed
Section titled “6. call.failed”{ "event": "call.failed", "event_id": "9d31b402-88e9-5c44-b220-1a77d001b106", "occurred_at": "2026-10-24T10:25:03+00:00", "call": { "id": "0192be10-4400-7000-8000-000000000004", "wa_call_id": "wacid.HBgNNjI4MTIzNDU2Nzg5MBUCABIYFDNE", "direction": "outbound", "business_phone": "622150991000", "business_phone_id": "11111111-2222-4333-8444-555555555555", "customer_phone": "6281234567890", "status": "failed", "outcome": "failed", "end_reason": "error", "duration_seconds": 0, "started_at": null, "answered_at": null, "ended_at": "2026-10-24T10:25:03Z", "created_at": "2026-10-24T10:25:00Z", "queue_id": null, "agent": { "id": "22222222-3333-4444-8555-666666666666", "name": "Siti Aminah" }, "conversation_id": "99999999-8888-4777-8666-555555555555", "contact_id": "77777777-6666-4555-8444-333333333333", "contact_name": "Budi Santoso", "disposition": null, "recording_available": false }}7. call.permission.updated
Section titled “7. call.permission.updated”Sent whenever the outbound call permission status between the business number and the customer changes. Unlike the six call status events above which contain the object call, this event contains the object permission.
{ "event": "call.permission.updated", "event_id": "0192d100-5500-7000-8000-000000000007", "occurred_at": "2026-10-28T06:00:00+00:00", "permission": { "business_phone_id": "11111111-2222-4333-8444-555555555555", "business_phone": "622150991000", "customer_phone": "6281234567890", "status": "temporary", "reason": "customer_reply", "expires_at": "2026-11-04T06:00:00+00:00" }}permission Field Structure
Section titled “permission Field Structure”| Field | Type | Description |
|---|---|---|
business_phone_id | UUID | The business WhatsApp number ID in DEP |
business_phone | string | Business WhatsApp number (E.164/digits) |
customer_phone | string | Customer WhatsApp number (digits) |
status | string | Latest permission status: "requested", "temporary", "permanent", "rejected", "revoked", "opted_out", or "opted_in" |
reason | string | null | Change trigger: "agent" (permission request from agent, API, or automation), "customer_reply", "unanswered_streak", or "keyword" |
expires_at | string (RFC3339) | null | Call permission expiration time (usually 7 days since approved by the customer) |
CTI Screen-Pop Integration Recipe
Section titled “CTI Screen-Pop Integration Recipe”To display the screen-pop customer card in an external CRM when the phone rings:
- Subscribe to the event
call.ringing,call.answered,call.ended, andcall.missed. - When
call.ringingis received:- Verify
X-Mahadata-Signature-256and checkevent_idto avoid processing duplicates. - Fetch
call.contact_idorcall.customer_phoneto look up the customer profile in your CRM. - Display an incoming-call pop-up with a link to the conversation (
call.conversation_id).
- Verify
- When
call.answeredis received, route the screen-pop to the agent sessioncall.agent.id. - When
call.endedis received andcall.recording_available == true, callGET /v1/calls/{call.id}/recordingto retrieve a time-limited (15-minute) recording download URL.