For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Webhooks are how you track your messages. Customer messages and reply updates are only sent through webhooks: if no webhook is registered when they happen, they are not stored for you to collect later.

If your server missed an update for a template notification, you can look up its current status by its ID. Use that to fill a gap, not instead of a webhook.

Before you start

  • A public HTTPS URL on your server that accepts POST requests 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.

Event
When it is sent
Typical use

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:appUser

The customer sent you a message.

Start or continue a reply.

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

  1. Go to Settings → Developer Settings → Webhooks and select Create.

  2. Enter a Name and your Endpoint URL.

  3. Under Events, tick the events you want.

  4. Select Create.

Webhooks

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, then notification: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, returns 429 Too Many Requests, or returns a redirect (3xx).

  • It stops immediately when your server returns any other 4xx, such as 400, 401 or 404. Channel360 treats a 4xx as "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.

notification:delivery:channel

This event is sent when a notification is accepted by the channel (WhatsApp).

notification:delivery:user

This event is sent when a notification reaches the user's device.

conversation:read

This event is sent when the user reads the conversation.

notification:delivery:failure

This event is sent when a notification fails to deliver. Use the error object to inspect the failure reason returned by the channel.

message:appUser

This event is sent when a client sends an inbound message.

The example uses fictional data. It includes one prior notification.

recentNotifications is optional. It may be absent when the conversation has no earlier messages.

flow:submission

This event is sent when a user submits a WhatsApp Flow.

The example uses fictional data. Parse response_json to access submitted fields.

Managing webhooks through the API

  • List: GET /org/<ORG_ID>/webhooks. The list is paginated with page and limit. Add ?id=<WEBHOOK_ID> or ?name=<NAME> to get one webhook.

  • Change: send the POST from step 2 again with the same name.

  • Delete: DELETE /org/<ORG_ID>/webhooks/<WEBHOOK_ID>.

Path parameter
Type
Description

ORG_ID

string

Your organisation ID. Required.

WEBHOOK_ID

string

The webhook's id. Required.

What can go wrong

What you see
Why
What to do

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 records

Last updated

Was this helpful?