GET /v1/metrics
Metrics are scoped to the project resolved from your key (or the X-Drin-Product header for account-wide keys). Counts come from the same event stream you can subscribe to over webhooks. Test-mode sends are excluded.
Query parameters
Inclusive start of the range, ISO-8601 (e.g.
2026-05-01 or a full date-time). Defaults to 30 days before to.End of the range, ISO-8601. Defaults to now.
Request
Response
The resolved
{ from, to } bounds as ISO timestamps — echoes the defaults applied when you omit a param.Event counts over the whole range, keyed by event type (
delivery, bounce, complaint, open, click, …). A type with zero events may be absent rather than 0.One entry per day with events, each
{ date, counts } where date is YYYY-MM-DD (UTC) and counts is the same per-type map for that day.200 OK
Computing rates
Rates are derived client-side fromtotals. Bounce rate is bounce / delivery; complaint rate is complaint / delivery. Keep bounce under 4% and complaints under 0.1% to stay in good standing — see Deliverability.
