Retrieve a message export
GET/v1/messages/exports/{id}
Requires an API key with the messages:read scope. About keys and scopes
Works with integration, agent and partner keys.
Returns a message export's progress: queued, generating, then ready or failed. A ready file is kept until expiresAt, after which the export reads expired. A failed export says why in failureCode: EXPORT_TOO_LARGE (narrow the filters) or GENERATION_FAILED.
Path parameters
idstringrequiredThe export's id.
uuid
Header parameters
Kirora-WorkspacestringoptionalPartner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.
pattern
^[A-Za-z0-9._:-]{1,128}$
Returns
Returns 200 OK with a MessageExport in data. Otherwise returns an error; Errors lists every code and which to retry.
idstringrequireduuid
statusstringrequiredqueued,generating, thenreadyorfailed;expiredonce the file is deleted.one of
queued,generating,ready,failed,expiredrowCountinteger | nullrequiredRows in the file, once it is ready.
filtersMessageExportFiltersrequiredThe filters the export was created with.
14 child attributes
statusstringoptionalOnly messages in this status.
one of
queued,sending,skipped,sent,failed,delivered,bounced,complainedchannelstringoptionalOnly messages on this channel.
one of
email,pushrecipientstringoptionalThe exact address the message went to.
email · up to 320 characters
querystringoptionalPart of the recipient's email address or name, matched against the contact the message went to.
1–100 characters
messageTypestringoptionalOnly messages of this type:
marketingortransactional.one of
marketing,transactionalcampaignIdstringoptionalOnly messages from this campaign.
uuid
journeyIdstringoptionalOnly messages from this journey.
uuid
stepIdstringoptionalWith
journeyId, only messages from the journey's step with this id, in every version of its steps.pattern
^[a-z0-9][a-z0-9_-]{0,63}$templateIdstringoptionalOnly transactional sends from this stored template; no other message records one.
uuid
correlationIdstringoptionalOnly the transactional sends that carried this
correlationId.1–255 characters
createdAfterstringoptionalOnly messages accepted at or after this time (inclusive).
date-time
createdBeforestringoptionalOnly messages accepted before this time (exclusive).
date-time
countedAfterstringoptionalOnly messages the send reports count at or after this time (inclusive): when each was sent, or accepted if it never was. With a report's resolved
fromandto, lists the messages behind its send counts (the overview, the comparisons, campaign, journey and step metrics, the transactional report). Not the campaign series, which counts each outcome when it happened.date-time
countedBeforestringoptionalOnly messages the send reports count before this time (exclusive), in the same sense.
date-time
createdAtstringrequireddate-time
completedAtstring | nullrequireddate-time
expiresAtstring | nullrequiredWhen the file is deleted; the export then reads
expired.date-time
failureCodestring | nullrequiredEXPORT_TOO_LARGEorGENERATION_FAILEDwhenstatusisfailed.