Retrieve metrics
GET /emails/metrics
Delivery, bounce, complaint and engagement counts for the account.
Query parameters
start_datestringISO 8601 date or datetime. Defaults to six days before
end_date.end_datestringISO 8601 date or datetime. A value in the future is clamped to now, and then down to the last completed one-minute bucket.
metricsstringComma-separated, repeated, or both. Defaults to every metric. Rate metrics are fractions between 0 and 1.
dimensionsstringperiod,domain,emailorbroadcast.datais omitted entirely when this is empty.emailcannot be combined withbroadcast.
5 more fields (granularity, domain_id, email_id, broadcast_id, timezone)
granularitystringhourly,daily,weeklyormonthly. Defaults todaily.domain_idstringRestrict to one or more domains, comma-separated. Up to 100 ids.
email_idstringRestrict to one or more emails, comma-separated. Up to 100 ids.
broadcast_idstringRestrict to one or more broadcasts (campaigns), comma-separated. Up to 100 ids.
timezonestringIANA timezone name. Defaults to
UTC.
Request
curl -X GET "https://api.rasket.com/emails/metrics?metrics=sent%2Cdelivered%2Cbounce_rate&dimensions=period" \
-H "Authorization: Bearer $RASKET_API_KEY" \
-H "User-Agent: acme-billing/1.0"const response = await fetch("https://api.rasket.com/emails/metrics?metrics=sent%2Cdelivered%2Cbounce_rate&dimensions=period", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.RASKET_API_KEY}`,
"User-Agent": "acme-billing/1.0",
},
});
const data = await response.json();import os
import requests
response = requests.get(
"https://api.rasket.com/emails/metrics?metrics=sent%2Cdelivered%2Cbounce_rate&dimensions=period",
headers={
"Authorization": f"Bearer {os.environ['RASKET_API_KEY']}",
"User-Agent": "acme-billing/1.0",
},
)
print(response.json())Response 200
{
"object": "metrics",
"start_date": "2026-09-02T00:00:00.000Z",
"end_date": "2026-09-09T14:30:00.000Z",
"metrics": ["sent", "delivered", "bounce_rate"],
"dimensions": ["period"],
"granularity": "daily",
"totals": {
"sent": 1000,
"delivered": 960,
"bounce_rate": 0.03
},
"data_as_of": "2026-09-09T14:30:00.000Z",
"data": [
{
"period": "2026-09-09",
"sent": 140,
"delivered": 135,
"bounce_rate": 0.028
}
]
}- Rate metrics are fractions, not percentages: a
bounce_rateof0.03is 3%. - Totals are aggregated in one-minute buckets.
data_as_ofis the end of the last completed bucket, andend_dateis clamped down to it, so a range never reports a partly-filled window as a final one. datais omitted rather than empty whendimensionsis empty.- A metric this release does not aggregate yet answers
0rather than being absent, so a caller can index the object it expects.