List messages
Retrieve a paginated list of received messages across all your inboxes. You can filter by domain, sender address, or spam verdict.Available filters
| Parameter | Description |
|---|---|
domainId | Filter messages by a specific domain. |
from | Filter messages by sender address. |
spamVerdict | Filter by spam verdict (PASS or FAIL). |
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. |
domainName | The domain the message was received on. |
inboxId | The inbox the message was routed to. |
threadId | The thread this message belongs to. |
inbox | The inbox details (id, address, name), or null for default catch-all. |
fromAddress | The sender email address. |
fromName | The sender display name. |
toAddresses | The recipient addresses. |
ccAddresses | The CC addresses. |
subject | The message subject line. |
receivedAt | The timestamp when the message was received. |
direction | Either received or sent. |
status | The message status (received, sent, discarded, or failed). |
spfVerdict | The SPF check result. |
dkimVerdict | The DKIM check result. |
spamVerdict | The spam verdict. |
virusVerdict | The virus scan result. |
attachmentCount | The number of attachments. |
Get message content
Retrieve presigned URLs for the message body in different formats. The URLs are temporary and expire after a short period.| Field | Description |
|---|---|
textUrl | Presigned URL for the plain text content, or null. |
htmlUrl | Presigned URL for the HTML content, or null. |
mimeUrl | Presigned URL for the raw MIME (.eml) content, or null. |
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. |
url | Presigned download URL (included on single retrieval). |
