List messages
Retrieve a paginated list of received messages across all your inboxes. You can filter by domain or sender address.Available filters
| Parameter | Description |
|---|---|
domainId | Filter messages by a specific domain. |
from | Filter messages by sender address. |
cursor | Cursor for pagination. |
limit | Maximum number of results to return (1-30, default 30). |
Retrieve a message
Get the full details of a single message by its ID. The response includes inbox information showing which inbox the message was routed to.Message fields
| Field | Description |
|---|---|
id | The unique message identifier. |
inboxId | The inbox the message was routed to, or null for the default catch-all. |
threadId | The thread this message belongs to. |
messageId | The email Message-ID header. |
from | The sender in RFC 5322 format (e.g. Jane Doe <jane@example.com> or jane@example.com). |
to | The recipient addresses. |
cc | The CC addresses. |
bcc | The BCC addresses. |
replyTo | The Reply-To addresses. |
subject | The message subject line. |
receivedAt | The timestamp when the message was received. |
status | The message status (received, sent, discarded, or failed). |
attachmentCount | The number of attachments. |
headers | The raw email headers as a key-value map. Included on single retrieval only. |
Get message content
Retrieve presigned download URLs for the message body in different formats. Each content item includes the download URL, the uncompressed size in bytes, and when the URL expires. By default, only the HTML format is returned. Use theformat parameter to request additional formats.
format query parameter to control which formats are included in the response. Requesting only the formats you need avoids unnecessary downloads.
| Parameter | Description |
|---|---|
format | Formats to retrieve: html, text, or mime. Defaults to html only. Repeatable. |
text, html, and mime is either a content item object or null if not requested or not available for the message.
| Field | Description |
|---|---|
text | Plain text content, or null. |
html | HTML content, or null. |
mime | Raw MIME (.eml) content, or null. Returned for received messages only. |
| Field | Description |
|---|---|
downloadUrl | Presigned download URL. |
size | Uncompressed size in bytes, or null. |
expiresAt | When the URL expires. |
Attachments
List attachments
Retrieve all attachments for a specific message.Retrieve an attachment
Get a single attachment with a presigned download URL.Attachment fields
| Field | Description |
|---|---|
id | The unique attachment identifier. |
filename | The original filename, or null. |
contentType | The MIME content type (for example, application/pdf). |
size | The size in bytes. |
contentDisposition | Either inline or attachment. |
contentId | The CID for inline images, or null. |
downloadUrl | Presigned download URL (included on single retrieval). |
Next steps
Inboxes
Create and manage inboxes to route incoming emails
Threads
Understand how messages are grouped into conversations
Send, reply, and forward
Respond to received messages from your inboxes
