Transactional
List transactional messages
GET/v1/transactional/messages
Requires an API key with the messages:read scope. About keys and scopes
Transactional sends, newest first, with their outcome. Narrow to one contact with contactId, to the address a message went to with recipient (or part of the contact's address or name with q), to your own reference with correlationId, or to one stored template with templateId. createdAfter (inclusive) and createdBefore (exclusive) bound when the API accepted the send: with the transactional report's currentPeriod and channel=email, the list is exactly what the report counts.
Query parameters
limitintegeroptionalmin > 0 · max 100 · default
20cursorstringoptional1–2048 characters
statusstringoptionalOnly messages in this status.
one of
queued,sending,skipped,sent,failed,delivered,bounced,complainedchannelstringoptionalone of
email,pushcontactIdstringoptionalOnly messages to this contact.
uuid
recipientstringoptionalThe exact address the message went to.
qstringoptionalPart of the recipient's email address or name, matched against the contact the message went to.
1–100 characters
correlationIdstringoptionalThe
correlationIdthe send carried.1–255 characters
templateIdstringoptionalOnly messages sent from this stored template.
uuid
createdAfterstringoptionalOnly messages accepted at or after this time (inclusive).
date-time
createdBeforestringoptionalOnly messages accepted before this time (exclusive).
date-time
Returns
Returns 200 OK with a list of SentMessage 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.
idstringrequireduuid
contactIdstring | nullrequiredNull when the contact was erased, or the message passed the retention period: the message no longer names anyone.
uuid
currentContactEmailstring | nullrequiredThe contact's email now, which may differ from
recipientAddress.recipientAddressstring | nullrequiredThe address the message went to, frozen at the first attempt; null until then.
simulatedbooleanrequiredSent to a reserved test address (
example.comand the like): it passed every check a real send does but was never handed to the provider. Any outcome was simulated from the address, asbounce@example.comsimulates a bounce.campaignIdstring | nullrequiredThe campaign it came from, if any.
uuid
journeyIdstring | nullrequiredThe journey it came from, if any.
uuid
journeyEnrollmentIdstring | nullrequiredThe journey enrollment it came from, if any.
uuid
journeyStepIndexinteger | nullrequiredPosition of the journey step that sent it, if any.
min -9007199254740991 · max 9007199254740991
sourceNamestring | nullrequiredThe campaign's or journey's name; null for a transactional send.
messageTypestringrequiredone of
marketing,transactionalchannelstringrequiredone of
email,pushstatusstringrequiredone of
queued,sending,skipped,sent,failed,delivered,bounced,complainedfailureReasonstring | nullrequiredWhy it failed, bounced or was skipped, e.g.
suppressed,consent_missing.correlationIdstring | nullrequiredThe reference a transactional send carried; null otherwise.
sendAtstring | nullrequiredWhen a timed transactional send is due; null for one sent at once.
date-time
sentAtstring | nullrequiredWhen it was handed to the provider.
date-time
deliveredAtstring | nullrequiredWhen the provider confirmed delivery.
date-time
failedAtstring | nullrequiredWhen it failed, bounced or was skipped (a cancelled send included).
date-time
openedAtstring | nullrequiredFirst open, when tracked.
date-time
clickedAtstring | nullrequiredFirst click, when tracked.
date-time
createdAtstringrequireddate-time
templateobject | nullrequiredThe stored template and published version it was sent from; null for inline content. Messages sent before template versions carry
version: null.2 child attributes
idstringrequireduuid
versioninteger | nullrequiredmin > 0 · max 9007199254740991