Delivery, bounce, complaint and engagement counts for the account.
Query parameters
Query parameters| Field | Type | Description |
|---|
start_date | string | ISO 8601 date or datetime. Defaults to six days before end_date. |
end_date | string | ISO 8601 date or datetime. A value in the future is clamped to now, and then down to the last completed 15-minute bucket. |
metrics | string | Comma-separated, repeated, or both. Defaults to every metric. Rate metrics are fractions between 0 and 1. |
dimensions | string | period, domain, email or broadcast. data is omitted entirely when this is empty. email cannot be combined with broadcast. |
›3 more fields (granularity, domain_id, timezone)
Query parameters, less common| Field | Type | Description |
|---|
granularity | string | hourly, daily, weekly or monthly. Defaults to daily. |
domain_id | string | Restrict to one or more domains. Up to 100 ids. |
timezone | string | IANA timezone name. Defaults to UTC. |
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_rate of 0.03 is 3%. - Totals are aggregated in 15-minute buckets.
data_as_of is the end of the last completed bucket, and end_date is clamped down to it, so a range never reports a partly-filled window as a final one. data is omitted rather than empty when dimensions is empty.- A metric this release does not aggregate yet answers
0 rather than being absent, so a caller can index the object it expects.