Retrieve email metrics
Resend-compatible counts and rates over a date range, for transactional and broadcast email together. Leave dimensions out for one totals row; add period, domain, email or broadcast (email and broadcast cannot be combined) to break the numbers down. Each lifecycle timestamp counts in its own period. Sends where every recipient is the SES mailbox simulator are left out. Rates are percentages with one decimal. Open and click metrics need tracking on. Requires the email:read scope.
Request
- Base URL: https://smtpfa.st/api
- URL: https://smtpfa.st/api/v1/emails/metrics
- Auth: HTTP bearer
Query parameters
ISO 8601 date or datetime. A date means midnight in timezone. Defaults to 6 days before end_date.
ISO 8601 date (the whole day is included) or datetime. Future values are clamped to now. Defaults to now.
IANA time zone for dates and periods, e.g. America/New_York. Default UTC.
Period size when period is a dimension. Default daily.
Comma-separated metrics to include. Omit for all.
Comma-separated: period, domain, email, broadcast.
Comma-separated domain ids, up to 100.
Comma-separated email ids, up to 100. Not with broadcast.
Comma-separated broadcast ids, up to 100. Not with email.
Response
Metrics
Example response
{
"object": "metrics",
"timezone": "UTC",
"metrics": [
"sent",
"delivered",
"open_rate"
],
"totals": {
"sent": 1204,
"delivered": 1180,
"open_rate": 50
},
"data": [
{
"period": "2026-07-01",
"domain_id": "dom_1",
"domain_name": "example.com",
"sent": 172,
"delivered": 169,
"open_rate": 49.7
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.