Email stats API
The email stats API returns the aggregates shown on the Metrics dashboard, plus the sending-health verdict computed from them. Use it to build dashboards, export data, or monitor email health. Requests require read access to the emails scope.
For reports with combined filters, selected metrics, and complete time series per group, use the flexible query endpoint. To explore these reports through an assistant, see Query email analytics with AI.
Typed methods ship in the TypeScript, Python, PHP, and Go SDKs under email.stats and email.health. The bird CLI exposes them as bird email stats and bird email health. Agents can call them through the email_stats_* and email_health MCP tools. Full request and response schemas are in the API reference.
The aggregate and the time series
These endpoints cover the top of the dashboard:
GET /v1/email/stats/summaryreturns one aggregate row for the whole window. It includes lifecycle counts for accepted, delivered, bounced, complained, opened, clicked, and their sub-types. It also includes the deriveddelivery_rate,bounce_rate,complaint_rate,open_rate, andclick_rate. Processing, delivery, and total latency percentiles cover p50, p95, and p99. If you passcompare=previous_period, the response also includes the preceding equal-length window and the change from it.GET /v1/email/stats/dailyandGET /v1/email/stats/hourlyreturn the same counts one row per day or per hour, gap-filled with zero rows so a chart never has holes in it.
Rates come back as fractions, so a delivery_rate of 0.9939 is 99.39%. A rate with a zero denominator returns null instead of 0, such as open_rate for a period with no deliveries. Rates use event time for attribution. Send time does not determine which window includes an event, so engagement arriving during the window for an older message is included. Open and click rates can exceed 1 when engagement and delivery fall in different windows. The exact formula behind each rate, including how a late out-of-band bounce changes effective deliveries, is documented per field on the summary reference.
Summary, daily, and hourly responses echo the window and include data_as_of, the last successful aggregate refresh when available. It can be null. A timestamp does not guarantee that all events have arrived. The flexible query endpoint always returns data_as_of: null. Show an available refresh timestamp on your dashboard without presenting it as proof of complete data.
Choosing the window
from and to accept either a calendar day (YYYY-MM-DD) or an RFC 3339 instant. Accepted formats depend on the endpoint:
| Endpoint | Bounds | Maximum window |
|---|---|---|
/summary | Both days or both instants | 365 days or 720 hours on instants |
/daily | Calendar days | 365 days |
/hourly | RFC 3339 instants | 720 hours (30 days) |
Instant bounds are hour-grain, which is what makes a rolling "last 24 hours" a single request. On /summary, mixing a day with an instant returns a 422.
Set timezone to an IANA identifier such as America/New_York to compute day and hour boundaries (and the defaults when you omit from and to) in that zone instead of UTC. While timezone is set, from and to must not include a UTC offset.
Breakdowns
The 14 breakdown endpoints slice the same delivery and engagement numbers by one dimension:
- Senders:
/sending-domains,/sending-ips,/recipient-domains(the mailbox domain you sent to), and/brands(send-time Brand attribution, including anullrow for historical unbranded messages). - Destination:
/mailbox-providers(Gmail, Outlook, and so on) and/mailbox-provider-regions. - What you sent:
/tags(the tags you set at send time, the most flexible cut),/categories,/templates, and/broadcasts. - Engagement context:
/locations(recipient geography) and/clients(the mail client that rendered the open). - Failures:
/bounce-codes(grouped by the receiving server's response) and/complaint-types.
All of them live under /v1/email/stats/. Rows come back ranked descending by a sort metric and capped at limit (default 50, maximum 200). The response also includes total, the number of distinct dimension values in the window. Compare total with the returned row count to identify a capped result. Rows whose sort metric is a rate with a zero denominator go last. /brands reads retained reporting events directly (last 180 days, on or after 2026-09-23T00:00:00Z, with data_as_of: null) and accepts either calendar days or RFC 3339 quarter-hour instants.
Each endpoint's sort default is the metric it exists to rank by:
| Default | Breakdowns |
|---|---|
processed | /tags, /categories, /templates, /brands, /broadcasts, /sending-domains, /recipient-domains |
delivered | /sending-ips, /mailbox-providers, /mailbox-provider-regions |
unique_opens | /locations, /clients |
bounced | /bounce-codes |
complained | /complaint-types |
include_trend=true adds a per-bucket rate series to each row, ready for sparklines. It applies to the tag, category, template, sending-domain, sending-IP, recipient-domain, mailbox-provider, and mailbox-provider-region breakdowns.
The summary and time-series endpoints also take one dimension filter per request. Choose category, sending_domain, sending_ip, recipient_domain, tag, or template. The filter scopes an aggregate to one sender or campaign without switching to a breakdown. Passing more than one returns a 422.
Sending health
GET /v1/email/health evaluates whether your sending is trending toward deliverability trouble. It returns an overall verdict for the window plus signals for delivery, opens, bounces, and complaints. Each signal includes its rate and verdict. Delivery, bounce, and complaint signals also include the thresholds that determine their verdicts. Open rate has no risk thresholds. Returning the thresholds lets a status badge follow our bands without hardcoding them in your client.
{
"period": {
"data_as_of": null,
"from": "2026-05-25",
"to": "2026-06-01"
},
"status": "watching",
"signals": [
{
"metric": "delivery_rate",
"value": 0.995,
"limit": null,
"status": "healthy",
"thresholds": {
"direction": "below",
"throttled": 0.984,
"watching": 0.99
}
},
{
"metric": "open_rate",
"value": 0.20100503,
"limit": null,
"status": "healthy"
},
{
"metric": "bounce_rate",
"value": 0.005,
"limit": 0.005,
"status": "watching",
"thresholds": {
"direction": "above",
"throttled": 0.006,
"watching": 0.004
}
},
{
"metric": "complaint_rate",
"value": 0.00010050251,
"limit": 0.003,
"status": "healthy",
"thresholds": {
"direction": "above",
"throttled": 0.001,
"watching": 0.0006
}
}
]
}Match each signal on its metric. The top-level status is the worst of the delivery, bounce, and complaint verdicts: healthy, watching, or throttled. open_rate is excluded from that roll-up because a high open rate is not a risk. It is also the only signal that can return strong.
Signals include both limit and thresholds, which serve different purposes. limit is the reference deliverability limit for the rate, or null when no reference limit applies. thresholds defines where the verdict changes. watching and throttled are the boundary values. direction indicates the risky side (above for bounce and complaint rates, below for delivery rate). The boundaries are exclusive, so a rate equal to a boundary keeps the better status.
Because the response includes the boundaries, you can grade slices this endpoint does not compute. For example, rank your senders with /sending-domains and classify each row against the bounce-rate boundaries from the health response. The Metrics dashboard uses separate warning bands for hard-bounce and complaint rates. This API evaluates aggregate bounce, complaint, and delivery rates, so its verdict can differ from a dashboard warning.
A throttled verdict reports deliverability risk. It does not pause your sending.
The window works differently from the endpoints above. from and to are calendar days in UTC. This endpoint has no timezone parameter and does not accept dimension filters. If you omit both, the window ends today and starts 7 days earlier. The maximum is 365 days.
Test traffic in the numbers
Sends to sandbox addresses run through the same aggregation, so test traffic appears in every endpoint here exactly as it does on the dashboard.
Next steps
- Query email analytics with AI: example prompts for delivery, engagement, and latency reports through MCP
- Email metrics: how the dashboard presents these numbers and when to act on them
- Stats summary reference: every field, filter, and rate formula
- Sending health reference: the verdict, its per-rate signals, and their boundaries
- Events and webhooks: the per-recipient stream when an aggregate is not enough
Related resources
Continue with the documentation, guides and examples for this topic.