Retrieve an outbound message
GET/v1/messages/{id}
Requires an API key with the messages:read scope. About keys and scopes
Works with integration, agent and partner keys.
Returns any outbound message in the message log, whatever its source and status, as the log lists it.
Path parameters
idstringrequiredThe message'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 an OutboundMessage in data. Otherwise returns an error; Errors lists every code and which to retry.
idstringrequireduuid
messageTypestringrequiredmarketing(fromcampaignorjourney) ortransactional(neither).one of
marketing,transactionalchannelstringrequiredone of
email,pushstatusstringrequiredone of
queued,sending,skipped,sent,failed,delivered,bounced,complainedcampaignobject | nullrequiredThe campaign it came from; null for any other message.
2 child attributes
idstringrequireduuid
namestringrequiredThe campaign's current name.
journeyobject | nullrequiredThe journey it came from, deleted or not; null for any other message.
5 child attributes
idstring | nullrequiredNull once the journey is deleted.
uuid
namestring | nullrequiredThe journey's current name; null once it is deleted.
deletedbooleanrequiredThe journey was deleted after sending this. Its messages and their counts stay; nothing names the journey any more.
enrollmentIdstringrequiredThe enrollment that sent it.
uuid
stepIdstringrequiredThe id of the step that sent it.
templateobject | nullrequiredThe stored template and published version it was sent from; null for inline content.
2 child attributes
idstringrequireduuid
versionintegerrequiredmin > 0
copyobject | nullrequiredSet on a
ccorbcccopy; null on the message itself.2 child attributes
kindstringrequiredone of
cc,bccofstringrequiredThe message it is a copy of.
uuid
contactobject | nullrequiredWho it was for; null when the contact was deleted, or the message passed the retention period: it no longer names anyone.
5 child attributes
idstringrequireduuid
externalIdstring | nullrequiredemailstring | nullrequiredThe contact's email now, which may differ from
recipientEmail.firstNamestring | nullrequiredThe contact's first name now.
lastNamestring | nullrequiredThe contact's last name now.
recipientEmailstring | nullrequiredThe email address the message went to, frozen at the first attempt; null until then, and for push.
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, as[email protected]simulates a bounce.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
openedAtstring | nullrequiredFirst open, when tracked: a person's first open or click, or a machine's open while only a machine has opened it.
date-time
openedByMachinebooleanrequiredOnly a machine has opened it so far: a mail app fetched its images with no reader (Apple Mail Privacy Protection, Gmail's prefetch on delivery) or a mail security scanner checked it. A click or a later open by a person clears it.
clickedAtstring | nullrequiredA person's first click, when tracked.
date-time
clickedByMachinebooleanrequiredA machine followed one of its links: a mail security scanner checking it on delivery, a link preview. Such a click sets no
clickedAtand sends no webhook.complainedAtstring | nullrequiredWhen the recipient marked it as spam (the first complaint); null for a simulated one.
date-time
bounceobject | nullrequiredThe hard bounce: set when
statusisbounced; null otherwise. A soft bounce is afailurewith reasontransient_bounce.3 child attributes
occurredAtstringrequiredWhen it happened.
date-time
typestringrequiredWhy:
mailbox_not_found,mailbox_full,suppressed(the provider refuses the address), orgeneralfor any other reason.one of
mailbox_not_found,mailbox_full,suppressed,generaldetailstring | nullrequiredThe receiving server's reply, such as
smtp; 550 5.1.1 user unknown; null for a simulated bounce.
failureobject | nullrequiredSet when
statusisfailed; null otherwise.2 child attributes
occurredAtstringrequiredWhen it happened.
date-time
reasonstringrequiredWhy sending broke, such as
provider_rejected(the provider refused the content) ortransient_bounce.not_sent: a problem on Kirora's side stopped it; nothing in your content, audience or setup caused it, and Kirora is alerted. In rare cases the provider may have delivered it before the problem.
skipobject | nullrequiredSet when
statusisskipped; null otherwise.3 child attributes
occurredAtstringrequiredWhen it happened.
date-time
reasonstringrequiredWhich guard stopped it before sending, such as
suppressed,consent_missingorcancelled;fallback_not_needed: a transactionalfallbackOrderfallback whose first channel arrived;plan_limit_reached: a fallback the plan had no room for when it was due;sending_review_required: email from a sending domain Kirora has not approved yet.suppressionReasonstring | nullrequiredWith
suppressed: why the address is blocked:unsubscribed,bounced,complained,complained_transactional,manualorimported. Null otherwise.one of
manual,imported,unsubscribed,bounced,complained,complained_transactional
createdAtstringrequireddate-time