Inbound
Download inbound attachment
VerifiedGET
/api/v1/inbound/{id}/attachments/{attachmentId}Undocumented but live. Returns the raw file bytes (needs the Bearer key).
Path Parameters
idstringrequiredResource id (GUID).
attachmentIdstringrequired
Notes
Live 2026-11-03. NOT in the official docs. 200 with the RAW file bytes (not JSON), Content-Type = the file's type (text/plain; .gitlab-ci.yml came as application/octet-stream), Content-Length, and Content-Disposition: attachment; filename=<name>; filename*=UTF-8''<name>. Needs the Bearer key (no key -> 401; this is not a signed public URL like Transactional's). ?download=true is ignored. /download and /content suffixes -> 404. Unknown attachment GUID -> 404 NotFound 'Attachment not found.'; non-GUID -> 404 empty body.
Errors
| Status | Case | Body |
|---|---|---|
| 404 | error | {"error": {"code": "NotFound", "message": "Attachment not found."}} |
| 404 | errorNotGuid | (empty) |
Snippets use the MailCraftApi (C#) and MailCraft (Python) helpers from Introduction → Helpers.