Delivery and suppressions

Retrieve delivery metrics

Counts of the project's mail per hour or day (UTC), one item per bucket of the range, zero where nothing happened. Counts are per recipient and refreshed every few minutes.

GET
/metrics

Counts of the project's mail per hour or day (UTC), one item per bucket of the range, zero where nothing happened. Counts are per recipient and refreshed every few minutes.

Authorization

bearer
headerAuthorizationBearer <token>

Query Parameters

from?string

The first bucket: the one holding this date (2026-11-01, midnight UTC) or RFC 3339 time. Default: the default range of the granularity, ending with to (the metrics guide lists the ranges).

to?string

The last bucket: the one holding this date or time. Default: now.

granularity?string

day (default) or hour; buckets are UTC.

domain_id?string

Only the mail of this sending domain.

stream?string

Only transactional or distributional mail.

Response Body

Success

application/json
  1. response

Every bucket of the range, oldest first.

data*array<>
object*string
Example Request
curl -X GET 'https://api.exx.sh/metrics'
Example Response
{  "data": [    {      "accepted": 0,      "bounced_hard": 0,      "bounced_soft": 0,      "bucket": "string",      "clicked": 0,      "complained": 0,      "deferred": 0,      "delivered": 0,      "failed": 0,      "opened": 0,      "sent": 0,      "suppressed": 0    }  ],  "object": "string"}