Message
Look up sent messages, follow their delivery events, and retrieve the original source, HTML or text body.
Resend a message
Sends the stored content of a sent message again as a new message with its own ID. The new message links to the original through resent_from_message_id, uses the current settings of the original route and project, and counts towards usage like any other send. Leave out recipients to resend to every original recipient. The original To and Cc headers stay, and only the chosen recipients receive the message. A message can be resent while its content is retained, and at most 5 times in 24 hours.
path Parameters
messageIdHeaders
Idempotency-KeyOptional key (1-255 characters) that makes the request safe to retry. Repeating a request with the same key and body within 24 hours returns the original response instead of sending again.
Resend a message › Request Body
recipientsRecipients of the original message to resend to. Omit to resend to every original recipient.
Resend a message › Responses
Message accepted for delivery
message_idstatussandboxPresent when the project uses Sandbox delivery
sandbox_resultThe simulated delivery result. Present when the project uses Sandbox delivery
Get message details
Returns detailed information about a specific message including optional nested resources.
path Parameters
messageIdGet message details › Responses
MessageData
idtypestatusdelivery_modestatus_changed_atscheduled_attagfrom_emailfrom_namereply_tosubjectroute_idcreated_atretained_untilUntil when the message is available. Null while a scheduled message waits to be sent, because its retention period starts when it is sent
resent_from_message_idThe ID of the message this message resent. Null when it is not a resend
spam_scoreOverall spam assessment score. Scores below 5 are clean, 5 through 10 indicate potential spam, scores above 10 and below 15 are likely spam, and 15 or higher is definite spam. Null means no assessment is available. Available on plans with Spam Insights
Detailed rules that contributed to the spam assessment. Available on plans with Spam Insights in individual-message responses
Reschedule a message
Changes the delivery time of a pending scheduled message.
path Parameters
messageIdReschedule a message › Responses
Message rescheduled
message_idscheduled_atThe scheduled delivery time in ISO 8601 format
Cancel a scheduled message
Cancels a pending scheduled message. Cancellation is final.
path Parameters
messageIdCancel a scheduled message › Responses
Scheduled message canceled
message_idscheduled_atThe scheduled delivery time in ISO 8601 format
List messages for the team
Returns a paginated list of messages with filtering and sorting capabilities.
query Parameters
sortfilter[search]Search in sender, recipients, and subject. A complete email address matches the sender, To, CC or BCC address exactly and does not search the subject.
filter[tags][0][name]Exact tag name. Add more numbered pairs to match all pairs.
filter[tags][0][value]Exact tag value.
filter[from_email]Search by sender email (partial match)
filter[subject]Search by subject (partial match)
page[size]Number of results per page
page[cursor]Cursor for the next or previous page
filter[tags]filter[overdue]filter[project]Filter by project ID
filter[type]filter[status]filter[delivery_mode]filter[route_id]Filter by route ID
filter[domain_id]Filter by domain ID
filter[tag]Filter by tag name
filter[from_date]Filter messages created on or after this date
filter[to_date]Filter messages created on or before this date
List messages for the team › Responses
Paginated set of MessageListData
pathBase path for paginator generated URLs.
per_pageNumber of items shown per page.
next_cursorThe "cursor" that points to the next set of items.
next_page_urlprev_cursorThe "cursor" that points to the previous set of items.
prev_page_urlGet message events
Returns a paginated list of events for a specific message with sorting capabilities.
path Parameters
messageIdquery Parameters
page[size]The number of results that will be returned per page.
page[cursor]The cursor to start the pagination from.
include_machine_eventsInclude security scanner, preview, and other machine-only tracking events. Supported privacy opens are included without this option.
sortGet message events › Responses
Paginated set of MessageEventData
pathBase path for paginator generated URLs.
per_pageNumber of items shown per page.
next_cursorThe "cursor" that points to the next set of items.
next_page_urlprev_cursorThe "cursor" that points to the previous set of items.
prev_page_urlProcess one quarantined inbound message
path Parameters
messageIdThe message UUID
Headers
Idempotency-KeyOptional key for an idempotent request
Process one quarantined inbound message › Responses
The message was queued for webhook delivery
A quarantined inbound message that was queued for webhook delivery.