Reports
Retrieve transactional email delivery
GET/v1/reports/transactional
Requires an API key with the reports:read scope. About keys and scopes
Transactional email by the day the API accepted it, so a send that failed or was skipped counts on its day. Email only: transactional push is not counted. Opens and clicks are not counted either: a send is tracked only when it asks (tracking), so a rate across all sends would mislead; read them on each message. Later feedback revises the counts. Bounce and complaint counts are durable first-occurrence facts, not current statuses. Rates are fractions of sent; null means nothing was sent. Days are calendar days in the workspace timezone (timezone); the first and last may be partial. Omitting both dates means the last 30 days ending today.
Query parameters
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
Returns
Returns 200 OK with a TransactionalReport in data. Otherwise returns an error; Errors lists every code and which to retry.
generatedAtstringrequireddate-time
timezonestringrequiredThe workspace timezone the dates are calendar days in.
startDatestringrequiredFirst day of the window (inclusive).
date
endDatestringrequiredLast day of the window (inclusive).
date
currentPeriodobjectrequiredThe window as UTC instants.
2 child attributes
startstringrequiredStart of the period (inclusive).
date-time
endstringrequiredEnd of the period (exclusive).
date-time
previousPeriodobjectrequiredThe equal-length period just before it.
2 child attributes
startstringrequiredStart of the period (inclusive).
date-time
endstringrequiredEnd of the period (exclusive).
date-time
currentTransactionalCountsrequiredCounts in the window.
7 child attributes
acceptedintegerrequiredEvery send the API accepted, whatever became of it.
min -9007199254740991 · max 9007199254740991
sentintegerrequiredHanded to the provider.
min -9007199254740991 · max 9007199254740991
deliveredintegerrequiredmin -9007199254740991 · max 9007199254740991
bouncedintegerrequiredmin -9007199254740991 · max 9007199254740991
complainedintegerrequiredmin -9007199254740991 · max 9007199254740991
failedintegerrequiredThe provider refused it, or every attempt to send it failed.
min -9007199254740991 · max 9007199254740991
skippedintegerrequiredNever sent: the address is suppressed, or the send was refused before it left.
min -9007199254740991 · max 9007199254740991
previousTransactionalCountsrequiredCounts in the previous period.
7 child attributes
acceptedintegerrequiredEvery send the API accepted, whatever became of it.
min -9007199254740991 · max 9007199254740991
sentintegerrequiredHanded to the provider.
min -9007199254740991 · max 9007199254740991
deliveredintegerrequiredmin -9007199254740991 · max 9007199254740991
bouncedintegerrequiredmin -9007199254740991 · max 9007199254740991
complainedintegerrequiredmin -9007199254740991 · max 9007199254740991
failedintegerrequiredThe provider refused it, or every attempt to send it failed.
min -9007199254740991 · max 9007199254740991
skippedintegerrequiredNever sent: the address is suppressed, or the send was refused before it left.
min -9007199254740991 · max 9007199254740991
deltaTransactionalCountsrequiredcurrentminusprevious.7 child attributes
acceptedintegerrequiredEvery send the API accepted, whatever became of it.
min -9007199254740991 · max 9007199254740991
sentintegerrequiredHanded to the provider.
min -9007199254740991 · max 9007199254740991
deliveredintegerrequiredmin -9007199254740991 · max 9007199254740991
bouncedintegerrequiredmin -9007199254740991 · max 9007199254740991
complainedintegerrequiredmin -9007199254740991 · max 9007199254740991
failedintegerrequiredThe provider refused it, or every attempt to send it failed.
min -9007199254740991 · max 9007199254740991
skippedintegerrequiredNever sent: the address is suppressed, or the send was refused before it left.
min -9007199254740991 · max 9007199254740991
ratesobjectrequiredFractions of
sent; null when nothing was sent.3 child attributes
deliverynumber | nullrequiredmin 0
bouncenumber | nullrequiredmin 0
complaintnumber | nullrequiredmin 0
seriesobject[]requiredOne entry per calendar day in the window.
at most 366 items
8 child attributes
acceptedintegerrequiredEvery send the API accepted, whatever became of it.
min -9007199254740991 · max 9007199254740991
sentintegerrequiredHanded to the provider.
min -9007199254740991 · max 9007199254740991
deliveredintegerrequiredmin -9007199254740991 · max 9007199254740991
bouncedintegerrequiredmin -9007199254740991 · max 9007199254740991
complainedintegerrequiredmin -9007199254740991 · max 9007199254740991
failedintegerrequiredThe provider refused it, or every attempt to send it failed.
min -9007199254740991 · max 9007199254740991
skippedintegerrequiredNever sent: the address is suppressed, or the send was refused before it left.
min -9007199254740991 · max 9007199254740991
datestringrequireddate