Campaigns
Chart campaign performance over time
GET/v1/campaigns/{id}/series
Requires an API key with the campaigns:read scope. About keys and scopes
Counts of each delivery and engagement event per hour or per day in the workspace's timezone (timezone), split by channel. An event lands in the bucket in which it happened: an open at 10:05 counts in the 10:00 hour. Opens and clicks are the first per message, as in the stats. Buckets start at the first send and run without gaps to the current one, up to 72 hours or 366 days; events after that are outside the series. A campaign that has not sent returns no points. Each bucket counts events, not a cohort, so a per-bucket open rate means nothing — divide running totals instead.
Path parameters
idstringrequireduuid
Query parameters
intervalstringrequiredThe bucket size.
one of
hour,day
Returns
Returns 200 OK with a CampaignSeries in data. Otherwise returns an error; Errors lists every code and which to retry.
campaignIdstringrequireduuid
intervalstringrequiredThe bucket size.
one of
hour,daytimezonestring | nullrequiredThe workspace timezone buckets follow;
nullwhen the campaign has not sent.pointsobject[]requiredOne point per bucket, from the first send to the current one.
at most 366 items
2 child attributes
datestringrequiredStart of the bucket: a local hour or midnight in
timezone, as an instant.date-time
byChannelobjectrequiredEvent counts per channel; a channel the campaign skips is absent.
2 child attributes
emailobjectoptional7 child attributes
sentintegerrequiredmin 0 · max 9007199254740991
deliveredintegerrequiredmin 0 · max 9007199254740991
openedintegerrequiredmin 0 · max 9007199254740991
clickedintegerrequiredmin 0 · max 9007199254740991
bouncedintegerrequiredmin 0 · max 9007199254740991
complainedintegerrequiredmin 0 · max 9007199254740991
unsubscribedintegerrequiredmin 0 · max 9007199254740991
pushobjectoptional4 child attributes
sentintegerrequiredmin 0 · max 9007199254740991
failedintegerrequiredmin 0 · max 9007199254740991
openedintegerrequiredmin 0 · max 9007199254740991
clickedintegerrequiredmin 0 · max 9007199254740991