Get analytics by domain
Return per-(recipient domain, day) counters.
GET
Return per-(recipient domain, day) counters. The axis is the recipient domain (derived from the first to recipient that survives suppression filtering), not the sending domain; messages with no recipient domain roll up under the sentinel unknown. Same window rules as daily analytics. Requires the read:analytics scope.
Loading code example
Loading code example
Authorizations
Authorizationstringheaderrequired
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
fromstring<date>
Inclusive lower bound as a `YYYY-MM-DD` day. Defaults to 30 days ago and is always clamped up to the plan retention floor.
tostring<date>
Inclusive upper bound as a `YYYY-MM-DD` day. Defaults to the current UTC day.
domainstring
Exact-match filter on the recipient domain.
Response
application/json
Per-(domain, day) counters.
dataarray<any>required