Sign inGet Started

Get statistics by Brand

GET
/v1/email/stats/brands
const { data } = await bird.email.stats.byBrand({
  sort: "open_rate",
  limit: 25,
});
for (const row of data) console.log(row.brand_id, row.engagement.open_rate);
Response200
{
  "period": {
    "from": "2026-10-01",
    "to": "2026-10-30",
    "data_as_of": null
  },
  "data": [
    {
      "brand_id": "bnd_01krdgeqcxet5s7t44vh8rt9mg",
      "delivery": {
        "processed": 14810,
        "delivered": 14720,
        "bounced": 90,
        "bounces": {
          "hard": 40,
          "soft": 35,
          "admin": 5,
          "block": 8,
          "undetermined": 2,
          "hard_rate": 0.4444,
          "soft_rate": 0.3889,
          "admin_rate": 0.0556,
          "block_rate": 0.0889,
          "undetermined_rate": 0.0222
        },
        "complained": 3,
        "deferred": 14,
        "rejected": 10,
        "oob_bounces": 2,
        "effective_delivered": 14718,
        "all_bounces": 92,
        "oob_rate": 0.00014,
        "delivery_rate": 0.9938,
        "bounce_rate": 0.0062,
        "complaint_rate": 0.0002
      },
      "engagement": {
        "opens": 5420,
        "opens_non_prefetched": 3210,
        "unique_opens": 3640,
        "unique_opens_non_prefetched": 2480,
        "clicks": 924,
        "unique_clicks": 621,
        "unsubscribes": 12,
        "open_rate": 0.1685,
        "click_rate": 0.0422,
        "unsubscribe_rate": 0.0008
      },
      "latency": {
        "processing": {
          "p50_ms": 24,
          "p95_ms": 80,
          "p99_ms": 140
        },
        "delivery": {
          "p50_ms": null,
          "p95_ms": null,
          "p99_ms": null
        },
        "total": {
          "p50_ms": 210,
          "p95_ms": 620,
          "p99_ms": 1100
        }
      }
    }
  ],
  "total": 2,
  "next_cursor": null,
  "prev_cursor": null,
  "refresh_cursor": "eyJ2ZXJzaW9uIjoxfQ"
}

Returns aggregate delivery, engagement, and latency counts grouped by the Brand each message was sent with, so each Brand's deliverability and engagement can be compared side by side. Attribution uses the Brand recorded at send time. Archived Brands retain their historical activity keyed by their ID. Historical or unattributed messages recorded without a Brand appear in a separate row with brand_id set to null rather than being merged into the default Brand.

Rows are ranked by the sort metric (default processed) descending and paginated with the requested limit (default 50, hard maximum 200). Rows are computed against event time (not send time), so engagement received during the period for messages sent earlier is included. Preserve from, to, sort, and timezone when following next_cursor or prev_cursor; if the first request omitted from or to, pass the returned period.from and period.to on continuation so the cursor stays valid across local midnight.

This endpoint reads retained reporting events directly (data_as_of is null), covering up to the last 180 days starting on or after 2026-09-23T00:00:00Z. Requesting dates before the available history boundary returns 422 (E04072). When drilling down into a single Brand with POST /v1/email/stats/query, use local today or earlier for to (since POST /v1/email/stats/query rejects future calendar dates).

Query Parameters

starting_afterstring

Cursor from the next_cursor field of a previous list response. Returns items immediately after the cursor position in the current sort order.

ending_beforestring

Cursor from the prev_cursor or refresh_cursor field of a previous list response. Returns items immediately before the cursor position in the current sort order. prev_cursor returns the preceding page. refresh_cursor anchors at the first row of that response, which on a newest-first sort is how to fetch the items that have appeared since.

fromstring

Inclusive start of the window: a calendar day (YYYY-MM-DD) or an RFC 3339 instant (rounded down to a local quarter-hour). Use the same form for from and to, and use Z UTC instants when timezone is supplied. Defaults to 30 calendar days before to when both are omitted. Must fall within retained reporting history (last 180 days, on or after 2026-09-23T00:00:00Z).

tostring

Inclusive end of the window: a calendar day (YYYY-MM-DD, including the whole local day) or an RFC 3339 instant (rounded down to a local quarter-hour and including that quarter-hour). Must use the same form as from and not lie in the future for instant windows. Calendar windows allow up to 365 local days; instant windows allow up to 720 hours. Defaults to today in timezone when both are omitted.

timezonestring

IANA timezone identifier used to group statistics, for example Asia/Kathmandu. The default is UTC. Day and hour boundaries, including the default window when from and to are omitted, follow this timezone. When this parameter is set, pass from and to as calendar days or Z instants instead of timestamps with explicit UTC offsets.

categorystring

Not supported on breakdown endpoints. Supplying it returns 422. To compare categories, use GET /v1/email/stats/categories, or use POST /v1/email/stats/query to combine brand_id and category.

sortstring

Metric to rank rows by, applied descending. Supports every count and rate defined by EmailStatsSortMetric; rows whose rate is undefined (zero denominator) sort last. Defaults to processed.

Possible values: processed, delivered, bounced, complained, deferred, rejected, oob_bounces, bounces.hard, bounces.soft, bounces.admin, bounces.block, bounces.undetermined, opens, opens_non_prefetched, unique_opens, unique_opens_non_prefetched, clicks, unique_clicks, unsubscribes, delivery_rate, bounce_rate, complaint_rate, open_rate, click_rate, unsubscribe_rate, bounces.hard_rate, bounces.soft_rate, bounces.admin_rate, bounces.block_rate, bounces.undetermined_rate

limitinteger

Maximum number of Brand rows to return, ranked by the sort field descending.

Response Payload

period
object
required

The resolved window the response covers (inclusive calendar dates in YYYY-MM-DD, or RFC 3339 starts of the first and last included 15-minute quarters), plus data_as_of (null because this breakdown reads retained reporting events directly).

Show child attributes
period.from
string
required

Inclusive start of the window the response covers. A calendar day (YYYY-MM-DD, in the requested timezone) for day windows, or an RFC 3339 UTC instant marking the start of the first included 15-minute quarter (aligned to a local quarter-hour boundary when timezone is set).

period.to
string
required

Inclusive end of the window the response covers. A calendar day (YYYY-MM-DD, in the requested timezone) for day windows, or an RFC 3339 UTC instant marking the start of the last included 15-minute quarter (covering the 15 minutes from this timestamp; aligned to a local quarter-hour boundary when timezone is set).

period.data_as_of
nullable string

Always null for Brand breakdowns because they read retained reporting events directly rather than asynchronous rollups.

data
array of object
required

Brand breakdown rows, ranked by the sort metric (default processed) descending. Includes a row with brand_id set to null when historical unbranded traffic occurred in the period.

Show child attributes
total
integer
required

Total number of distinct Brand groups with activity in the period (including the null unbranded group when present), regardless of limit. Pass next_cursor as starting_after to request the next page.

next_cursor
nullable string
required

Cursor for the next page. Pass back as starting_after to advance forward. null when no next page exists.

prev_cursor
nullable string
required

Cursor for the previous page. Pass back as ending_before to step backward. null when no previous page exists.

refresh_cursor
nullable string
required

Refresh anchor, the first row of this response. Pass back as ending_before to fetch what precedes it in the current sort order. On a newest-first sort those are the items that have appeared since; on any other sort they are the items that sort earlier, so refreshing such a list means re-fetching it instead. Non-null whenever data is non-empty; null only on an empty page. Distinct from prev_cursor.

Continue with the documentation, guides and examples for this topic.