Reports
Compare campaigns
GET/v1/reports/campaigns
Requires an API key with the reports:read scope. About keys and scopes
One row per campaign with a marketing email sent, or a marketing push queued, in the window. Counts are send cohorts like the overview: email by the time it was sent, push by the time it was queued, and later feedback revises them. Conversions are those whose source message was sent in the window, and revenue is summed per goal currency, never converted. Rates are fractions; null means no denominator, and sorts below every rate. firstSentAt is the earliest send in the window, not the campaign schedule; sent sorts by email sent.
Query parameters
limitintegeroptionalmin > 0 · max 100 · default
20cursorstringoptional1–2048 characters
startDatestringoptionalFirst day, inclusive, in the workspace timezone. Give with
endDate.date
endDatestringoptionalLast day, inclusive, no later than today. Give with
startDate; a window is at most 366 days. Omit both for the last 30 days.date
sortstringoptionalA field ascending, or
-fielddescending. Rates with no denominator sort last.one of
firstSentAt,sent,openRate,clickRate,bounceRate,unsubscribeRate,conversions,-firstSentAt,-sent,-openRate,-clickRate,-bounceRate,-unsubscribeRate,-conversions· default"-firstSentAt"
Returns
Returns 200 OK with a list of CampaignPerformance objects in data, and the next page's cursor in meta (see pagination). Otherwise returns an error; Errors lists every code and which to retry.
campaignIdstringrequireduuid
namestringrequiredstatusstringrequiredone of
draft,scheduled,sending,sent,cancelledchannelsstring[]requiredThe channels the campaign targets.
firstSentAtstringrequiredThe earliest send in the window, not the campaign schedule.
date-time
emailobjectrequiredEmail counts for the window.
7 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
ratesobjectrequiredEmail rates as fractions; null when there is no denominator.
6 child attributes
deliverynumber | nullrequiredmin 0
opennumber | nullrequiredmin 0
clicknumber | nullrequiredmin 0
bouncenumber | nullrequiredmin 0
complaintnumber | nullrequiredmin 0
unsubscribenumber | nullrequiredmin 0
pushobjectrequiredPush counts for the window.
4 child attributes
sentintegerrequiredmin 0 · max 9007199254740991
failedintegerrequiredmin 0 · max 9007199254740991
openedintegerrequiredmin 0 · max 9007199254740991
clickedintegerrequiredmin 0 · max 9007199254740991
conversionsintegerrequiredGoal conversions whose source message was sent in the window.
min 0 · max 9007199254740991
revenueobject[]requiredRevenue per goal currency.
2 child attributes
currencystring | nullrequiredThe goal currency; null when it has none.
valuenumberrequiredRevenue in that currency, never converted.