Download an email attachment
Admin
Download an email attachment
GET /v1/api/email/messages/{id}/attachments/{attachment_id}/download - the
raw bytes of one attachment, for the admin viewer’s inline preview + download
(the read-half reuses the shared FilePreview renderer). Fetch-on-view from
Sentio (never stored). The message is tenant-scoped here, and Sentio scopes
the attachment to its message, so an attachment is reachable only through a
message the caller’s tenant owns. Admin-only.
GET
Download an email attachment
Binary response
Returns the attachment’s raw bytes with its storedContent-Type (not JSON). The bytes are fetched on demand and not stored by HQ. The interactive playground may not render binary — fetch it programmatically and stream the body to a file.