Mail API reference

Mail API · Messages

get/v1/workspaces/{workspace_id}/mailboxes/{id}/messages/{mid}/rawAuth

Stream the raw RFC5322 .eml for a message. Gated by `mail.message.body.read` (admin+ by default; not granted to plain members) — the outbound lane's /messages/:id/body action.

Path parameters

workspace_id*string · uuid

Id of the workspace.

id*string · uuid

Id of the mailboxe.

mid*string · uuid

Id of the message in the mailbox.

Response · 200

Raw RFC5322 message stream (`Content-Disposition: attachment`, `.eml`).

Example

Request

GET https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/mailboxes/{id}/messages/{mid}/raw
Authorization: Bearer YOUR_TOKEN