---
agent:
  instructions: "Use this search API to find what Blueping's public pages say, with keywords or a question, instead of crawling them one by one. Results are returned in Markdown, best first, each with its link."
  endpoint: "https://blueping.dev/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

> The index of these docs for agents is at https://blueping.dev/llms.txt

# Deliverability

Your agent learns whether each email reached each person, as a webhook, an event and a field on the message. An address that bounced or complained is refused before anything goes out, and each inbox shows its rates.

## From sent to delivered

Each recipient of a message the agent sends has its own state: `sent` when the mail service took it, then `deferred` while a receiving server asks to try later, and one final state: `delivered`, `bounced`, `failed`, `rejected` or `complained`. A state never moves back. A Blueping inbox or echo@blueping.dev is `delivered` at once.

The message sums them up in `delivery.status`: `queued`, `sent`, `deferred`, `delivered` (every recipient), `partly_delivered`, `bounced`, `failed`, `suppressed` (none reached) or `complained`. Lists and webhooks carry the status; `GET /v1/messages/{id}` adds each recipient:

```json
"delivery": {
  "status": "partly_delivered",
  "recipients": [
    { "address": "ana@example.com", "status": "delivered", "at": "2026-11-27T09:00:04.000Z",
      "smtp": { "code": "250", "enhanced": "2.0.0" } },
    { "address": "bob@example.net", "status": "bounced", "at": "2026-11-27T09:00:06.000Z", "bounce_type": "hard",
      "smtp": { "code": "550", "enhanced": "5.1.1" }, "detail": "550 5.1.1 User unknown" }
  ],
  "updated_at": "2026-11-27T09:00:06.000Z"
}
```

## Delivery events

| Event | When |
| --- | --- |
| `email.delivered` | A receiving server took the message for one recipient. |
| `email.deferred` | A receiving server asked to try later. The mail service retries by itself. |
| `email.bounced` | The message was refused for good, `hard`, or retries ran out, `soft`. |
| `email.complained` | The recipient marked it as spam. |
| `email.suppressed` | An address joined the agent's suppression list. |
| `email.failed` | With `stage` `delivery`, the mail service gave up after the hand-over; with `stage` `queue`, a queued send was refused at its time. |

Each one comes as a [webhook](https://blueping.dev/docs/webhooks.md), signed, with the message and the recipient it is about, and in the agent's event log that `GET /v1/events`, `wait_for_events` and MCP events read. The same event never fires twice for a recipient.

## The suppression list

An address on the agent's suppression list gets nothing more: a send to it answers `422 recipient_suppressed` before anything goes out, with each address, its reason and what to do.

| Reason | What adds it | How long |
| --- | --- | --- |
| `hard_bounce` | A permanent bounce | For good when the mailbox or the domain doesn't exist, 7 days otherwise |
| `soft_bounce` | Retries that ran out | 24 hours |
| `complaint` | A spam complaint | For good |
| `manual` | `POST /v1/suppressions`, or the tool `add_suppression` | Until it is removed |
| `refused` | The mail service refused the address with no reason given | 24 hours |

```json
{
  "error": {
    "code": "recipient_suppressed",
    "message": "bob@example.net is on this agent's suppression list: mail to it bounced on 2026-11-20 (550 5.1.1 user unknown). Nothing was sent.",
    "next_action": "Remove that address and send again, or ask the person for another address. GET /v1/suppressions/bob%40example.net says why it is there.",
    "suppressed": [{ "address": "bob@example.net", "reason": "hard_bounce", "scope": "agent", "since": "2026-11-20T10:00:00.000Z", "expires_at": null }],
    "docs_url": "https://blueping.dev/docs/errors#recipient_suppressed"
  }
}
```

An entry for good from a bounce or a complaint is `read_only`: `DELETE` answers `409 suppression_read_only`, since the person or their server refused the mail. `GET /v1/suppressions` lists the agent's entries, `GET /v1/suppressions/{address}` checks one address, and an agent adds 10,000 addresses at most itself.

Every agent sends from blueping.dev, and the mail service keeps one list for that domain: an address that bounced or complained for one agent is refused for every agent, for a while or for good. Those entries show with `scope` `platform`, and never say which agent caused them. Mail from your own domain isn't affected.

## Deliverability by inbox

`GET /v1/inboxes/{id}/deliverability`, or the tool `get_deliverability`, sums up 7, 30 or 90 days of an inbox's mail: what was delivered, bounced and marked as spam, the rates against the mail service's thresholds, and a status with what to do. `series=day` adds one row per day.

```bash
curl "https://blueping.dev/v1/inboxes/inb_4Kd9Wq1Mz5TbX2Vn7RcP/deliverability?days=30" \
  -H "Authorization: Bearer $BLUEPING_API_KEY"
```

```json
{
  "inbox_id": "inb_4Kd9Wq1Mz5TbX2Vn7RcP",
  "days": 30,
  "sent": 412,
  "recipients": 430,
  "delivered": 421,
  "deferred_now": 2,
  "bounced": { "hard": 3, "soft": 1 },
  "complained": 0,
  "suppressed": 4,
  "rates": { "delivery": 0.979, "hard_bounce": 0.007, "complaint": 0 },
  "thresholds": { "delivery_at_least": 0.95, "hard_bounce_under": 0.02, "complaint_under": 0.001 },
  "status": "healthy",
  "next_action": "Nothing to do: every rate is within the mail service's thresholds."
}
```

The rates divide by the recipients handed to the mail service. `too_few_sends` under 50 recipients; `at_risk` at a hard bounce rate of 2% or more, a complaint rate of 0.1% or more, or a delivery rate under 90%; `watch` from half those bounce and complaint rates, or a delivery rate under 95%; `healthy` otherwise.

## What an agent does

- `delivered`: nothing.
- `deferred`: wait. The mail service retries, and a later event says how it ended.
- `bounced` hard: stop writing to that address, and ask the person for another one.
- `bounced` soft or `failed`: try again later, or reach the person another way.
- `complained`: never write to that address again.
- `recipient_suppressed`: read the reason with `GET /v1/suppressions/{address}`, and remove a manual entry only when the person asks.
- `at_risk`: check the addresses before sending, and send less until the rates come back.
