Mail API reference

Mail API · Emails

get/v1/workspaces/{workspace_id}/emails/{id}/attachments/{position}Auth

Download an attachment of a sent email

The file exactly as it was sent, by its `position` in the email's `attachments` (`GET /emails/{id}`). Kept as long as the email is in the log (30 days). Gated by `mail.message.body.read`, like message bodies.

Path parameters

workspace_id*string · uuid

Id of the workspace.

id*string · uuid

Email id.

position*integer

Attachment position (0-based).

Response · 200

The file. `Content-Type` is the type it was sent with; `Content-Disposition: attachment` carries the file name.