Menu

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

idstringrequired

uuid

Query parameters

intervalstringrequired

The 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.

campaignIdstringrequired

uuid

intervalstringrequired

The bucket size.

one of hour, day

timezonestring | nullrequired

The workspace timezone buckets follow; null when the campaign has not sent.

pointsobject[]required

One point per bucket, from the first send to the current one.

at most 366 items

2 child attributes
datestringrequired

Start of the bucket: a local hour or midnight in timezone, as an instant.

date-time

byChannelobjectrequired

Event counts per channel; a channel the campaign skips is absent.

2 child attributes
emailobjectoptional
7 child attributes
sentintegerrequired

min 0 · max 9007199254740991

deliveredintegerrequired

min 0 · max 9007199254740991

openedintegerrequired

min 0 · max 9007199254740991

clickedintegerrequired

min 0 · max 9007199254740991

bouncedintegerrequired

min 0 · max 9007199254740991

complainedintegerrequired

min 0 · max 9007199254740991

unsubscribedintegerrequired

min 0 · max 9007199254740991

pushobjectoptional
4 child attributes
sentintegerrequired

min 0 · max 9007199254740991

failedintegerrequired

min 0 · max 9007199254740991

openedintegerrequired

min 0 · max 9007199254740991

clickedintegerrequired

min 0 · max 9007199254740991