Skip to main content
GET
Get Message

Authorizations

X-Account-ApiKey
string
header
required

This api key can be used for all account level operations

Path Parameters

message_id
string
required

The unique message ID returned when the email was sent.

Example:

"msg_01H2X3Y4Z5A6B7C8D9E0F1G2H3"

Response

Complete message details with event history.

A previously submitted email message with its metadata. Use the message lookup API to retrieve details about emails you have sent.

messageId
string

Unique identifier (UUID) for this email message

Example:

"550e8400-e29b-41d4-a716-446655440000"

subAccountId
integer<int64>

ID of the sub-account that sent this email

Example:

117

publicIp
string

The public IP address used to send this email

Example:

"52.34.11.12"

emailType
string

Classification of the email, e.g. "transactional" or "marketing".

Example:

"transactional"

submittedAt
integer<int64>

UNIX epoch timestamp in nanoseconds when the email was submitted

Example:

1704067200000000000

from
object

The sender's email address and display name

Example:
replyTo
object

The Reply-To email address and display name

Example:
to
object

The primary recipient, including any per-recipient CC/BCC and custom fields

Example:
headerTo
object

The address rendered in the visible To header (may differ from the envelope recipient)

Example:
headerCc
object[]

Addresses rendered in the visible Cc header

headerBcc
object[]

Addresses rendered in the visible Bcc header

attachments
object[]

File attachments included with the email

groups
string[]

Tags/groups associated with this email

Example:
ipPool
string

Name of the IP pool used for sending

Example:

"transactional"

headers
object

Custom SMTP headers set on the message

Example:
subject
string

The email subject line

Example:

"Your order has been shipped!"

preText
string

Preheader/preview text shown by many email clients after the subject

Example:

"Your order is on its way"

htmlBody
string

The HTML body of the email

Example:

"<h1>Your order has shipped!</h1>"

textBody
string

The plain-text body of the email

Example:

"Your order has shipped!"

ampBody
string

The AMP for Email body, if provided

Example:

""

trackOpens
boolean

Whether open tracking was enabled for this email

Example:

true

trackClicks
boolean

Whether click tracking was enabled for this email

Example:

true