# Delivery and events

A send moves through a lifecycle. Understanding which step is proven prevents both false success and duplicate sends.

## Lifecycle

| State | Proof |
| --- | --- |
| `queued` | Bonga recorded the request |
| `scheduled` | Waiting for its send time |
| `sent` | The sending provider accepted the message |
| `delivered` | A provider receipt confirmed the destination |
| `read` | The recipient's provider reported an open or read where supported |
| `failed` | A definite refusal or bounce |
| `submission_unknown` | The provider may have accepted it; reconcile, do not auto-resend |

`202 Accepted` means the request was recorded. It does not mean sent, and it never means delivered.

## Delivery events

For email, the connected provider reports accepted, delivered, bounced, complained and delayed events. Each event is verified, recorded once and projected onto the delivery row. A duplicate event does not move the status backwards.

WhatsApp Cloud reports message statuses through Meta webhooks. SMS routes report per-recipient delivery. Managed SMS and Android gateways keep their own evidence.

## Bounces and complaints

- A **hard bounce** means the address does not exist. It is suppressed and will not be retried.
- A **soft bounce** means a temporary failure. It can be retried within policy.
- A **complaint** suppresses future marketing mail to that recipient and is treated as a hard suppression.

Never retry a hard bounce or a complaint. A suppression is a decision, not an error.

## Reconciliation

When the outcome is ambiguous:

1. Read the message with `GET /api/v2/messages/{id}`.
2. Check the delivery row and provider events.
3. If the provider proves the message was not sent, create a new attempt with a new idempotency key.
4. If the provider accepted it, keep the original.

Do not resend automatically on a timeout. A timeout is not proof of failure.

## Webhooks

Workspace webhooks can deliver `message.received` and `message.status_updated`. Verify the signature over the raw body, deduplicate by event ID, and make the handler idempotent. See [Webhooks](/docs/webhooks).

## Reporting

Campaign reports separate accepted, delivered, failed and skipped counts. A campaign row shows the sender, destination, content and spend for each recipient, so a delivery problem can be traced to a route, a sender or a single address.

## Next

- [Email](/docs/email)
- [Webhooks](/docs/webhooks)
- [Errors and retries](/docs/errors-and-retries)
