Events
Events
Every event Chatwise sends, or will send, to a webhook endpoint, with its channels and status.
Events are the same on every channel: message.received is a message from a customer, whether it came by WhatsApp, Instagram, Messenger or Website Chat. data.message.channel says which.
| Event | Sent when | Channels | Status |
|---|---|---|---|
message.received | A customer sent a message. | WhatsApp, Instagram, Messenger, Website Chat | Available |
message.sent | The workspace sent a message: from the dashboard, the mobile app, the API, MCP, a flow, Comment to DM, or the native WhatsApp Business or Instagram app. | WhatsApp, Instagram, Messenger, Website Chat | Coming soon |
message.delivered | The channel reported an outgoing message was delivered. | WhatsApp, Messenger | Coming soon |
message.read | The channel reported the customer read an outgoing message. | WhatsApp, Instagram, Messenger | Coming soon |
message.failed | The channel reported an outgoing message could not be delivered. | Coming soon | |
comment.received | Someone commented on a post of a connected Instagram account. | Coming soon |
An endpoint can subscribe to an event that is coming soon, but nothing is sent for it until it is available.
There is also webhook.test, which is only sent when you send a test event. Endpoints don't subscribe to it.
To read this list from a program, call list event types. It lists events that are coming soon too.
What every event has
Every event is a JSON object with the same outer fields. data depends on the event.
| Field | Type | Description |
|---|---|---|
id | string | The event's id, the same on every retry and redelivery. Also the webhook-id header. |
type | string | The event's name. Also the X-Chatwise-Event header. |
timestamp | string | When the event happened. The same on every retry. ISO 8601, in UTC. |
apiVersion | string | The payload format, as a date. |
workspaceId | string | The workspace the event happened in. |
data | object | What happened. |