Metrics
Read how much of your mail was accepted, delivered, bounced and drew complaints per day or hour, per domain and stream, how each mailbox provider treats it, and your bounce and complaint rates against the limits.
exx.sh counts what happens to your mail and keeps the counts after the emails themselves leave the log. The dashboard draws them on its Metrics and Deliverability pages; the API gives you the same numbers for your own reports and alerts. Metrics are an exx.sh addition: Resend has no such endpoint.
Every count is per recipient: an email to three people that is delivered adds three to
delivered. The counts are refreshed every 5 minutes.
Counts per day or hour
GET /metrics returns one item per day of the last
30 days, today included, with zeros for days without mail:
curl "https://api.exx.sh/metrics" \
-H "Authorization: Bearer $EXX_API_KEY"{
"object": "list",
"data": [
{
"bucket": "2026-11-10 00:00:00.000000+00",
"accepted": 120,
"sent": 118,
"delivered": 110,
"deferred": 4,
"bounced_hard": 3,
"bounced_soft": 2,
"complained": 1,
"suppressed": 2,
"failed": 1,
"opened": 0,
"clicked": 0
}
]
}| Count | What it counts |
|---|---|
accepted | Recipients the API accepted, scheduled emails included |
sent | Recipients of email.sent events: queued to be sent right away, or a scheduled email when it goes out |
delivered | Recipients whose mail server accepted the message |
deferred | Recipients deferred for the first time (email.delivery_delayed); most are delivered later |
bounced_hard | Permanent bounces: the address does not exist |
bounced_soft | Every other bounce: a full mailbox, a policy or content refusal |
complained | Spam complaints, from mail that was delivered first |
suppressed | Recipients skipped because they are on your suppression list |
failed | Recipients exx.sh could not deliver at all, for example a domain without mail servers |
opened, clicked | First human opens and clicks from tracking; machine hits do not count and opens are unreliable |
A count belongs to the day or hour its event happened, not to the day the email was sent: a bounce that arrives the next morning counts on the next day.
Choose the range
fromandtotake a date (2026-11-01, midnight UTC) or an RFC 3339 time. The answer runs from the day or hour holdingfromthrough the one holdingto;todefaults to now.granularity=hourreturns hours instead of days, the last 24 hours by default. Days and hours are UTC.- A range covers at most 400 days by day and 7 days by hour. It cannot start before the kept counts (see how long metrics are kept) or end after the next day or hour.
curl "https://api.exx.sh/metrics?granularity=hour&from=2026-11-10T08:00:00Z&to=2026-11-10T12:00:00Z" \
-H "Authorization: Bearer $EXX_API_KEY"One domain or stream
domain_id keeps the mail of one of your sending domains, and stream the
transactional or distributional mail:
curl "https://api.exx.sh/metrics?domain_id=$DOMAIN_ID&stream=distributional&from=2026-11-01" \
-H "Authorization: Bearer $EXX_API_KEY"A bounce or complaint that arrives after the email itself left the log still counts in your totals, but no longer knows its domain or stream, so the filtered answers leave it out. The mail of a domain you deleted is in your totals too; its id can no longer be used as a filter.
Any problem with the parameters answers 400 validation_error with a message naming the
parameter.
By mailbox provider
GET /metrics/providers shows how each mailbox
provider treats your mail: how often Gmail, Outlook or Yahoo accepted it, deferred it or
refused it, how much of it went over TLS, and how long delivery took. Providers with the
most attempts come first; providers you did not send to are left out.
curl "https://api.exx.sh/metrics/providers?from=2026-11-01" \
-H "Authorization: Bearer $EXX_API_KEY"{
"object": "list",
"data": [
{
"provider": "gmail",
"name": "Gmail / Google Workspace",
"attempts": 200,
"delivered": 190,
"deferred": 6,
"bounced": 4,
"delivered_share": 0.95,
"deferred_share": 0.03,
"bounced_share": 0.02,
"tls_share": 1,
"latency_p50_ms": 1500,
"latency_p95_ms": 7500
}
]
}- Every count is per recipient and per attempt: a recipient that was deferred twice and
then delivered adds three
attempts, twodeferredand onedelivered. - The shares divide by
attempts, so they are shares of attempts, not of emails. They need not add up to 1: an attempt that failed for good without a bounce (no mail server would ever take it) is in none of them. bouncedcounts every refusal for good: an unknown address, a policy or a content refusal.tls_shareis the share of attempts sent over TLS.latency_p50_msandlatency_p95_msare the median and 95th percentile of the time from the API accepting the email (or its scheduled time, when later) to the provider accepting it. Time an email waited for review or while sending was paused counts. exx.sh sorts each delivery into a latency bucket with these edges: 100 ms, 200 ms, 300 ms, 500 ms, 750 ms, 1 s, 1.5 s, 2 s, 3 s, 5 s, 7.5 s, 10 s, 15 s, 20 s, 30 s, 45 s, 1 min, 1.5 min, 2 min, 3 min, 5 min, 7.5 min, 10 min, 15 min, 20 min, 30 min, 45 min, 1 h, 1.5 h, 2 h, 3 h, 4 h, 6 h, 8 h, 12 h, 18 h, 1 day, 2 days, 3 days and 4 days. A percentile is the upper edge of its bucket, so1500means "under 1.5 seconds". The same holds for any range of days and domains. They arenullwhen nothing was delivered. The accept and the delivery are stamped by different servers, so a delivery within a moment of the accept can read as instant.- The range works as for daily counts:
fromandtoare days (dates or RFC 3339 times), the last 30 days by default and at most 400 days.domain_idkeeps one of your sending domains.
exx.sh recognizes the provider by the mail servers of the recipient's domain, so a
company domain hosted on Google Workspace counts as gmail:
provider | Name | Mail servers ending in |
|---|---|---|
gmail | Gmail / Google Workspace | google.com, googlemail.com |
outlook | Outlook / Microsoft 365 | outlook.com, mx.microsoft |
yahoo | Yahoo / AOL | yahoodns.net |
icloud | iCloud Mail | icloud.com |
gmx | GMX / WEB.DE / IONOS | gmx.net, gmx.com, web.de, kundenserver.de, ionos.de |
proton | Proton Mail | protonmail.ch |
zoho | Zoho Mail | zoho.com, zoho.eu, zoho.in |
yandex | Yandex Mail | yandex.ru, yandex.net |
mailru | Mail.ru | mail.ru |
fastmail | Fastmail | messagingengine.com |
other | Other | Any other mail server, and attempts to domains without mail servers or whose mail servers could not be looked up |
test | Test addresses | The test addresses at test.mail.exx.sh |
Attempts made before exx.sh recorded providers count as other.
Bounce and complaint rates
GET /metrics/reputation shows where you stand
against the limits, and how your rates move:
curl "https://api.exx.sh/metrics/reputation" \
-H "Authorization: Bearer $EXX_API_KEY"{
"object": "reputation",
"pause_window": {
"hours": …,
"sample": 40,
"bounced_hard": 1,
"complained": 0,
"bounce_rate": 0.025,
"complaint_rate": 0
},
"thresholds": {
"bounce_rate": …,
"bounce_warn": …,
"complaint_rate": …,
"complaint_warn": …,
"min_sample": …
},
"trends": [
{
"days": 7,
"sample": 115,
"bounced_hard": 3,
"complained": 1,
"bounce_rate": 0.0261,
"complaint_rate": 0.0087
}
// … one item per window
]
}pause_windowis exactly what exx.sh checks before pausing a project: each recipient of the window once, by how it ended (delivered, bounced or complained), without the test addresses, since the project was last resumed.samplecounts those recipients, and the rates divide hard bounces and complaints by it.thresholdsare the rates of the table below, as fractions:bounce_rateandcomplaint_ratepause the project (the "Project paused" column),bounce_warnandcomplaint_warnmark the "Warning" column, where nothing is paused;min_sampleis the number of recipients the window needs before they apply. The dashboard's Metrics page draws the window against both. The alerts for bounces and complaints are a separate mark, at a share of the pause rate, not at these warning rates:
| Rate over 24h | Warning | Project paused |
|---|---|---|
| Bounces | 2% | 5% |
| Spam complaints | 0.1% | 0.3% |
trendsgive the same rates over the last 7 and 30 days (today included), from the daily counts above, without the test addresses (aspause_window). They show the direction of your mail, not the pause decision: a recipient whose mail was delivered and then bounced later counts as both. The deliverability guide explains the limits.
How long metrics are kept
Hourly counts are kept for 30 days and daily counts for
400 days, on every plan: they hold no addresses or content, only
numbers; the counts by mailbox provider are kept by hour and by day the same way. A range
that starts earlier is refused with 400 validation_error. Every metrics endpoint needs a
full-access API key; in the dashboard every role sees them.
Deliverability
What exx.sh does so your mail is accepted, how to read the result of every delivery, the bounce and complaint limits, and how to keep a good sending reputation.
API request logs
See the requests your code made to a project, with their status, timing, API key, IP address and user agent, and match one to its x-request-id.