> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.wapilot.io/llms.txt
> Use this file to discover all available pages before exploring further.

# message.sent

> Fired when Wapilot successfully submits an outbound message to WhatsApp.

## When it fires

This event fires after an outbound message is sent via the Developer API or from the inbox. The `data` object reflects the response received from Meta's API.

## Payload

```json theme={null}
{
  "event": "message.sent",
  "data": {
    "success": true,
    "data": {
      "messaging_product": "whatsapp",
      "contacts": [
        { "input": "+xxxxxxxxxxxx", "wa_id": "+xxxxxxxxxxxx" }
      ],
      "messages": [
        { "id": "wamid.xxxx", "message_status": "accepted" }
      ]
    }
  }
}
```

## Key fields

| Field                                 | Description                         |
| ------------------------------------- | ----------------------------------- |
| `data.success`                        | `true` if Meta accepted the message |
| `data.data.contacts[].wa_id`          | Recipient's WhatsApp ID             |
| `data.data.messages[].id`             | WhatsApp message ID (`wamid.*`)     |
| `data.data.messages[].message_status` | Typically `"accepted"` at send time |
