Messages
Search, inspect, and download retained messages and attachments.
Search received messages
Returns the account's message history, newest first, 25 per page. Search q matches message ID, event ID, retained sender/recipient, subject and Message-ID. Supported status filters are returned by the API. Expired summaries hide message content.
Inspect received message
Returns a message summary, parsed message details while content is available, and its delivery summaries. The message ID is the 24-character receiptId from GET /api/messages. Message content and attachments follow the account's current retention policy.
Download a retained attachment
Streams a retained attachment while the account's current retention policy permits access. Requires the account's messages:read scope or a signed-in session. The response uses a safe Content-Disposition filename and private, no-store caching.
Preview message body
Returns a sanitized text or HTML preview of a retained message. Access follows the account's current retention policy.
Download raw MIME
Streams the retained RFC 822 email with private, no-store caching. Access follows the account's current retention policy.