Messages

Get the raw RFC-822 message

Returns the raw RFC-822 (`.eml`) source of a message as a short-lived presigned `download_url` — the client fetches the untouched bytes from that URL, exactly as attachment download works. A `spam`-labeled message requires the key's `label_spam_read` permission. Unknown/cross-tenant ids return an indistinguishable `404`.

GET
/inboxes/{inbox_id}/messages/{message_id}/raw

Returns the raw RFC-822 (.eml) source of a message as a short-lived presigned download_url — the client fetches the untouched bytes from that URL, exactly as attachment download works. A spam-labeled message requires the key's label_spam_read permission. Unknown/cross-tenant ids return an indistinguishable 404.

Authorization

x-api-key<token>

The per-tenant API key. Sent as the x-api-key request header. The key is tenant-scoped.

In: header

Path Parameters

inbox_id*string

The inbox's email address (the external inbox identifier).

message_id*string

The message id.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/inboxes/user@example.com/messages/string/raw"
{  "message_id": "string",  "download_url": "http://example.com"}
{  "name": "string",  "message": "string"}
{  "name": "string",  "message": "string"}
{  "name": "string",  "message": "string"}