Browse the help center
Outgoing webhooks
Get a signed HTTPS request from ChatFlow GO whenever a WhatsApp message arrives, a message status changes or a conversation starts, and verify it came from ChatFlow GO.
Outgoing webhooks let ChatFlow GO notify your systems the moment something happens, instead of your code asking the API over and over. Register an HTTPS endpoint and ChatFlow GO sends it a signed POST request for each event you subscribe to.
Requirements
- The Growth plan (up to 10 endpoints) or Scale (unlimited endpoints).
- The Owner or Admin role.
- A public
https://URL that can receivePOSTrequests.
You can manage endpoints in two ways:
- In the dashboard: go to Settings → Webhooks and click Add endpoint. Pick the events, then copy the signing secret. It is shown only once. From the same list you can Pause, Resume or Delete an endpoint and see its last delivery and failure count.
- Through the API: with an API key that has the
webhooks:managescope (see Create and manage API keys), as shown below.
Events
| Event | Sent when |
|---|---|
message.received | A customer's WhatsApp message arrives |
message.status_updated | A message you sent changes status, for example to delivered or read |
conversation.created | A new conversation is opened for a contact |
Register an endpoint
curl -X POST https://acme.chatflowgo.com/api/v1/webhooks \
-H "Authorization: Bearer wacrm_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/hooks/chatflow",
"events": ["message.received", "conversation.created"]
}'
Response (201):
{
"data": {
"id": "…",
"url": "https://example.com/hooks/chatflow",
"events": ["message.received", "conversation.created"],
"secret": "whsec_…"
}
}
Manage endpoints
All of these need the webhooks:manage scope.
| Request | Does |
|---|---|
GET /api/v1/webhooks | Lists your endpoints (never includes the secret) |
GET /api/v1/webhooks/{id} | Reads one endpoint |
PATCH /api/v1/webhooks/{id} | Changes url, events or is_active |
DELETE /api/v1/webhooks/{id} | Removes an endpoint |
Each endpoint shows is_active, failure_count and last_delivery_at, which help you spot problems.
curl -X PATCH https://acme.chatflowgo.com/api/v1/webhooks/WEBHOOK_ID \
-H "Authorization: Bearer wacrm_live_xxx" \
-H "Content-Type: application/json" \
-d '{ "events": ["message.received", "message.status_updated"] }'
What a delivery looks like
Every delivery is a JSON POST with the same envelope:
{
"id": "8f3c…",
"event": "message.received",
"occurred_at": "2026-11-01T12:00:00.000Z",
"account_id": "…",
"data": {
"conversation_id": "…",
"contact_id": "…",
"whatsapp_message_id": "wamid.…",
"content_type": "text",
"text": "Hi, is my order ready?"
}
}
data for the other events:
{ "conversation_id": "…", "contact_id": "…" }
{ "whatsapp_message_id": "wamid.…", "conversation_id": "…", "status": "delivered" }
The first is conversation.created, the second message.status_updated.
Each request also carries these headers:
X-Wacrm-Event: the event nameX-Wacrm-Webhook-Id: your endpoint's IDX-Wacrm-Signature: the signature (see below)
Verify the signature
Always check that a request really came from ChatFlow GO before you trust it. The signature header looks like this:
X-Wacrm-Signature: t=1761998400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd
v1 is an HMAC-SHA256 of the string t.rawBody, using your endpoint secret as the key. In Node.js:
const crypto = require('crypto');
function verify(rawBody, header, secret) {
const match = /t=(\d+),\s*v1=([0-9a-f]+)/.exec(header || '');
if (!match) return false;
const [, t, v1] = match;
// Reject old requests (replay protection): 5 minutes here.
if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
const expected = crypto
.createHmac('sha256', secret)
.update(`${t}.${rawBody}`)
.digest('hex');
return expected.length === v1.length &&
crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}
Delivery rules
- Respond quickly with a 2xx status. ChatFlow GO waits up to 5 seconds. Do slow work in the background after you respond.
- One attempt per event. A failed delivery is not retried, so use the API to catch up on anything important you missed.
- Expect duplicates and any order. Status updates in particular can arrive more than once or out of order. Use the envelope's
idto ignore duplicates, and don't assume events arrive in sequence. - Redirects are not followed. Use the final URL.
- Public HTTPS only. URLs that point to
localhost, private networks or cloud metadata addresses are refused. - Automatic disabling. Each failure increases
failure_count. After 15 failures in a row, the endpoint is turned off (is_active: false). Fix the problem, then re-enable it withPATCHand{ "is_active": true }, which also resets the counter. message.status_updatedcovers messages sent from the inbox and the API. It does not cover broadcast-only sends. Use broadcast reports orGET /api/v1/broadcasts/{id}for those.
Webhook deliveries stop if your plan no longer includes webhooks or the workspace is locked. They start again when you upgrade.
Related articles
Was this page helpful?