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
    }
  ]
}
CountWhat it counts
acceptedRecipients the API accepted, scheduled emails included
sentRecipients of email.sent events: queued to be sent right away, or a scheduled email when it goes out
deliveredRecipients whose mail server accepted the message
deferredRecipients deferred for the first time (email.delivery_delayed); most are delivered later
bounced_hardPermanent bounces: the address does not exist
bounced_softEvery other bounce: a full mailbox, a policy or content refusal
complainedSpam complaints, from mail that was delivered first
suppressedRecipients skipped because they are on your suppression list
failedRecipients exx.sh could not deliver at all, for example a domain without mail servers
opened, clickedFirst 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

  • from and to take a date (2026-11-01, midnight UTC) or an RFC 3339 time. The answer runs from the day or hour holding from through the one holding to; to defaults to now.
  • granularity=hour returns 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, two deferred and one delivered.
  • 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.
  • bounced counts every refusal for good: an unknown address, a policy or a content refusal. tls_share is the share of attempts sent over TLS.
  • latency_p50_ms and latency_p95_ms are 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, so 1500 means "under 1.5 seconds". The same holds for any range of days and domains. They are null when 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: from and to are days (dates or RFC 3339 times), the last 30 days by default and at most 400 days. domain_id keeps 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:

providerNameMail servers ending in
gmailGmail / Google Workspacegoogle.com, googlemail.com
outlookOutlook / Microsoft 365outlook.com, mx.microsoft
yahooYahoo / AOLyahoodns.net
icloudiCloud Mailicloud.com
gmxGMX / WEB.DE / IONOSgmx.net, gmx.com, web.de, kundenserver.de, ionos.de
protonProton Mailprotonmail.ch
zohoZoho Mailzoho.com, zoho.eu, zoho.in
yandexYandex Mailyandex.ru, yandex.net
mailruMail.rumail.ru
fastmailFastmailmessagingengine.com
otherOtherAny other mail server, and attempts to domains without mail servers or whose mail servers could not be looked up
testTest addressesThe 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_window is 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. sample counts those recipients, and the rates divide hard bounces and complaints by it.
  • thresholds are the rates of the table below, as fractions: bounce_rate and complaint_rate pause the project (the "Project paused" column), bounce_warn and complaint_warn mark the "Warning" column, where nothing is paused; min_sample is 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 24hWarningProject paused
Bounces2%5%
Spam complaints0.1%0.3%
  • trends give the same rates over the last 7 and 30 days (today included), from the daily counts above, without the test addresses (as pause_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.

On this page