Receive delivery updates
Get told when a message is sent, delivered, read or fails, and when a customer writes to you.
Channel360 tells your system what happened to each message — sent, delivered, read, failed — and when a customer writes to you, by calling a URL on your server. This page sets that up.
Before you start
A public HTTPS URL on your server that accepts
POSTrequests with a JSON body.An API key, if you register the webhook through the API. See Authentication.
Steps
1. Choose your events
An event (also called a trigger) is the kind of thing that happened. You choose which events your webhook receives.
notification:delivery:channel
Your template message was accepted by WhatsApp (sent).
Mark "sent".
notification:delivery:user
Your template message reached the customer's phone (delivered).
Mark "delivered".
notification:delivery:failure
Your template message failed. The error object says why.
Alert, then fix and resend.
notification:match:failure
The message failed before it reached WhatsApp, for example because the number could not be matched to a WhatsApp user.
Check the number.
conversation:read
The customer read the conversation.
Mark "read".
message:delivery:channel
A reply you sent (text, media, interactive) was accepted by WhatsApp.
Mark the reply "sent".
message:delivery:user
A reply you sent reached the customer's phone.
Mark the reply "delivered".
message:delivery:failure
A reply you sent failed.
Alert.
flow:submission
The customer submitted a WhatsApp Flow form.
Read the answers.
template:status
A template was imported, or its approval status changed.
Refresh your template list.
The web app shows these with friendly labels, for example Notification Delivery User. The API uses the names in the first column.
2. Register the webhook
Go to Settings → Developer Settings → Webhooks and select Create.
Enter a Name and your Endpoint URL.
Under Events, tick the events you want.
Select Create.
POST /org/<ORG_ID>/webhooks
This call creates or updates. If name (or id) matches a webhook you already have, that webhook is updated and the response is 200. Otherwise a new webhook is created and the response is 201:
3. Reply 200 quickly
Your endpoint must answer with any 2xx status within 5 seconds. Do the real work — database writes, calls to other systems — after replying, or in a background job.
4. Ignore duplicates
Every call carries an X-Channel360-Delivery-Id header. A retried call carries the same value. Store the values you have processed and ignore repeats.
5. Route by trigger
Every payload has a top-level trigger field naming the event.
Check it worked
Send a test message (see the Quickstart). Within a few seconds your endpoint receives
notification:delivery:channel, thennotification:delivery:user.If nothing arrives, open Settings → Developer Settings → Delivery Logs. It lists Channel360's attempts to call your URL and the response your server gave.
Retries
Channel360 tries each event up to 5 times over about 15 minutes. The gaps grow: about 30 seconds, 2 minutes, 5 minutes, then 7½ minutes.
It retries when your server does not answer within 5 seconds, cannot be reached, returns
5xx, returns429 Too Many Requests, or returns a redirect (3xx).It stops immediately when your server returns any other
4xx, such as400,401or404. Channel360 treats a4xxas "never send me this again".After the fifth failed attempt, the event is not sent again.
Example payloads
Use these examples to test your handler and map the fields for each event. They use fictional data.
The payloads include an appUser._id: Channel360's ID for one customer on your WhatsApp number. It is created when the customer first interacts with your number, and you need it to reply. Identifiers explains every ID you will see.
Managing webhooks through the API
List:
GET/org/<ORG_ID>/webhooks. The list is paginated withpageandlimit. Add?id=<WEBHOOK_ID>or?name=<NAME>to get one webhook.Change: send the
POSTfrom step 2 again with the samename.Delete:
DELETE/org/<ORG_ID>/webhooks/<WEBHOOK_ID>.
ORG_ID
string
Your organisation ID. Required.
WEBHOOK_ID
string
The webhook's id. Required.
What can go wrong
Nothing arrives
Wrong URL, the URL is not public, or the event is not ticked.
Check Delivery Logs, and check the events on the webhook.
The same event arrives twice
A retry after a slow or failed response.
Ignore repeats using X-Channel360-Delivery-Id.
Events stop after one attempt
Your server returned a 4xx.
Return 2xx for everything you receive, even events you ignore.
400 when registering
target is missing, triggers is empty, or the name is already used.
Fix the body. Use a different name, or send the matching id.
Next
Check a notification's statusReply to a customerMatch replies to your recordsLast updated
Was this helpful?