Skip to content
Chatwise
Skip to Content
Developer docs
Events

Events

Every event Chatwise sends, or will send, to a webhook endpoint, with its channels and status.

View as Markdown

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.

EventSent whenChannelsStatus
message.receivedA customer sent a message.WhatsApp, Instagram, Messenger, Website ChatAvailable
message.sentThe 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 ChatComing soon
message.deliveredThe channel reported an outgoing message was delivered.WhatsApp, MessengerComing soon
message.readThe channel reported the customer read an outgoing message.WhatsApp, Instagram, MessengerComing soon
message.failedThe channel reported an outgoing message could not be delivered.WhatsAppComing soon
comment.receivedSomeone commented on a post of a connected Instagram account.InstagramComing 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.

FieldTypeDescription
idstringThe event's id, the same on every retry and redelivery. Also the webhook-id header.
typestringThe event's name. Also the X-Chatwise-Event header.
timestampstringWhen the event happened. The same on every retry. ISO 8601, in UTC.
apiVersionstringThe payload format, as a date.
workspaceIdstringThe workspace the event happened in.
dataobjectWhat happened.

On this page