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

# Email stats

> Read email opens, clicks, deliveries, bounces and unsubscribes per campaign, template and send, over MCP or the API — the same numbers the app shows.

The email numbers Boom shows in the app (a campaign's **Analytics › Email**
tab and email card, the **Email templates** list, and **Settings › Email ›
Stats**) are also available to an AI assistant over [MCP](https://docs.useboom.ai/use-mcp.md) or to a
script over the API. Each tool returns the same numbers as the screen it
mirrors, plus `notes` that say what a number leaves out.

| Tool | Endpoint | Shows |
| - | - | - |
| `email_stats_campaign` | `GET $BASE/initiatives/{id}/email-stats` | One campaign, customer journey or transactional email (or one email step): sent, delivered, people's opens and clicks, bounces, spam reports, unsubscribes, rates beside your average, and the Email tab's people funnel |
| `email_stats_templates` | `GET $BASE/email-stats/templates` | Per email template; with `templateId`, which campaigns sent it, opens per day and the links people clicked most |
| `email_stats_sends` | `GET $BASE/email-stats/sends` | Every campaign and customer journey email step side by side against your average (**Stats › By send**) |
| `email_stats_deliverability` | `GET $BASE/email-stats/deliverability` | Your whole organization: delivered, bounced, blocked, spam reports, the lines that pause sending, active pauses, and the sends with the most bounces |

These tools work once email stats are on for your organization. Until then
they answer `email_stats_unavailable` rather than zeros: ask your Boom team.

Who can use them over MCP follows the app: anyone who can see campaigns reads
campaign and per-send stats, anyone who can see email templates reads template
stats, and organization-wide deliverability takes the permission to change
settings. An API key reads all four.

## Read the notes before quoting a number

* **Rates start at 1,000 emails.** Below 1,000 emails in the period, `rates`
  is `null` and only counts come back, as in the app: a rate over a few hundred
  emails swings too much to compare.
* **Not measured is not zero.** An email sent without open or click tracking
  can't report opens or clicks. When none of the emails were tracked, `opened`
  and `clicked` are `null` and `tracking.opens` is `not_tracked`. When only some
  were, it is `partly_tracked` and the rate counts the tracked ones alone. See
  [email tracking](https://docs.useboom.ai/email-tracking.md) to turn tracking on.
* **Opens are people, estimated.** Mail apps that open every email
  automatically (such as Apple Mail's privacy protection) and security filters
  are left out as best Boom can tell, and a click by a person also counts as an
  open. Clicks leave out security scanners.
* **Counting starts on November 18, 2026**, when Boom began recording email
  results. Earlier emails are not included; `earlierSendsNotCounted` says how
  many were left out.

## Which emails are counted

* **Campaign and template stats** count the emails **sent** in the period.
  `email_stats_campaign` takes `range` (`today`, `7d`, `30d`, `all`, or
  `custom` with `from` and `to`); it defaults to a campaign's whole life (the
  campaign card) and to the last 7 days for a customer journey or transactional email
  (the Email tab). `email_stats_templates` and `email_stats_deliverability`
  take `days` (7, 30 or 90, default 30); `email_stats_sends` takes `days` 30
  or 90.
* **By send and deliverability** count emails by when their **result**
  (delivered, bounced, blocked or not sent) arrived, like mailbox providers do.
  A campaign can read slightly differently here than on its own page.
* The Email tab's **funnel counts people**, one per run: a person who got two
  emails counts once there and twice in `emails`.

## Examples

How did a campaign do?

```bash theme={null}
curl "$BASE/initiatives/$ID/email-stats" -H "Authorization: Bearer $BOOM_API_KEY"
```

Last 30 days of every send, biggest first. It returns 50 rows a page (up to
200 with `limit`); `totalRows` says how many there are, and you pass
`next_cursor` back as `cursor` until it is `null`. `average` always covers
every row, not just the page:

```bash theme={null}
curl "$BASE/email-stats/sends?days=30&limit=200" -H "Authorization: Bearer $BOOM_API_KEY"
curl "$BASE/email-stats/sends?cursor=$NEXT_CURSOR" -H "Authorization: Bearer $BOOM_API_KEY"
```

One template's breakdown with its most-clicked links:

```bash theme={null}
curl "$BASE/email-stats/templates?templateId=$TEMPLATE_ID&days=30" -H "Authorization: Bearer $BOOM_API_KEY"
```

Link addresses keep only the site and the first part of the path, never the
full link a person clicked.

For one message's delivery status (did it reach Ana?), use
[message logs](https://docs.useboom.ai/message-logs.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.