# 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`](https://chatwise.so/docs/webhooks/events/message-received.md) | A customer sent a message. | WhatsApp, Instagram, Messenger, Website Chat | Available |
| [`message.sent`](https://chatwise.so/docs/webhooks/events/message-sent.md) | 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`](https://chatwise.so/docs/webhooks/events/message-delivered.md) | The channel reported an outgoing message was delivered. | WhatsApp, Messenger | Coming soon |
| [`message.read`](https://chatwise.so/docs/webhooks/events/message-read.md) | The channel reported the customer read an outgoing message. | WhatsApp, Instagram, Messenger | Coming soon |
| [`message.failed`](https://chatwise.so/docs/webhooks/events/message-failed.md) | The channel reported an outgoing message could not be delivered. | WhatsApp | Coming soon |
| [`comment.received`](https://chatwise.so/docs/webhooks/events/comment-received.md) | Someone commented on a post of a connected Instagram account. | Instagram | 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`](https://chatwise.so/docs/webhooks/events/webhook-test.md), which is only sent when you [send a test event](https://chatwise.so/docs/webhooks/testing.md). Endpoints don't subscribe to it.

To read this list from a program, call [list event types](https://chatwise.so/docs/api/list-webhook-event-types.md). 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. |
