Webhook events
Instead of asking us every few seconds, register an HTTPS address and we POST to it the moment something happens: a customer writes, a message is delivered or read, or a new conversation starts.
Events#
| Event | Sent when |
|---|---|
message.received | A customer’s message arrives, on any channel: WhatsApp, Instagram, Messenger, website chat, email or SMS. |
message.status_updated | A message you sent on WhatsApp (or SMS, with a provider that reports delivery) changes status. |
conversation.created | A new conversation opens for a contact. |
Each endpoint subscribes to one or more of these. You can add or remove events at any time.
The payload#
Every delivery is a JSON object with the same five fields; data depends on the event.
message.received
{
"id": "3f9c2b7e-5a1d-4e08-9c6b-2d7f1a0e8b45",
"event": "message.received",
"occurred_at": "2026-11-27T10:42:18.512Z",
"account_id": "b2c1e8f4-3a6d-4c9b-8e27-1d5f0a9b6c43",
"data": {
"conversation_id": "5d2a9e47-1c3b-4f6e-8a20-7b9c1d4e6f81",
"contact_id": "a81c3f09-2e5d-4b7a-9c64-0d1e2f3a4b5c",
"message_id": "0f6b1c52-8d0e-4b8c-9a51-3f1e2d7c9a10",
"whatsapp_message_id": "wamid.HBgMOTE5ODc2NTQzMjEwFQIAEhgU…",
"content_type": "text",
"text": "Is the Friday batch still open?",
"interactive_reply_id": null
}
}text is the message or the caption. interactive_reply_id is the id of the button or list row the customer tapped, when they tapped one. Use message_id or the conversation to fetch more with the API.
message.status_updated
{
"id": "3f9c2b7e-5a1d-4e08-9c6b-2d7f1a0e8b45",
"event": "message.status_updated",
"occurred_at": "2026-11-27T10:42:18.512Z",
"account_id": "b2c1e8f4-3a6d-4c9b-8e27-1d5f0a9b6c43",
"data": {
"whatsapp_message_id": "wamid.HBgMOTE5ODc2NTQzMjEwFQIAERgS…",
"conversation_id": "5d2a9e47-1c3b-4f6e-8a20-7b9c1d4e6f81",
"status": "delivered"
}
}Match whatsapp_message_id with the one you got when sending (for SMS it holds the provider’s message id). status is sent, delivered, read or failed.
conversation.created
{
"id": "3f9c2b7e-5a1d-4e08-9c6b-2d7f1a0e8b45",
"event": "conversation.created",
"occurred_at": "2026-11-27T10:42:18.512Z",
"account_id": "b2c1e8f4-3a6d-4c9b-8e27-1d5f0a9b6c43",
"data": {
"conversation_id": "5d2a9e47-1c3b-4f6e-8a20-7b9c1d4e6f81",
"contact_id": "a81c3f09-2e5d-4b7a-9c64-0d1e2f3a4b5c"
}
}Headers#
| Header | Value |
|---|---|
X-Cat-Event | The event name, for example message.received. |
X-Cat-Signature | Proof it came from us: t=…,v1=…. See Verify signatures. |
X-Cat-Webhook-Id | Which of your endpoints this is for. |
X-Cat-Delivery-Id | This delivery. Retries of it keep the same id. |
User-Agent | CAT-Engage-Webhooks/1.0 |
Content-Type | application/json |
Answer quickly#
- Answer with any
2xxstatus within 10 seconds. Anything else, a timeout or a redirect counts as a failure. - Do the slow work after answering: save the event, reply 200, then process it from a queue.
- The same event can arrive twice. Skip ones you have seen, using the body's
id. - Events can arrive out of order. Use occurred_at, and fetch the latest state from the API when order matters.
Retries#
A failed delivery is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours: seven tries over about 21 hours, each with exactly the same body. Then it is marked failed.
Switched off after 15 failures in a row
is_active: true through the API) starts a fresh count.Address rules#
- The URL must be
https://, without a user name or password in it. - It must reach the public internet. Private and local addresses are refused, checked again at every delivery.
- Redirects are not followed. Give the final address.
Try it from the app
webhook.test event to your endpoint and shows what it answered. The delivery history there keeps 30 days.