Download an attachment
GET
https://myagentmail.com/v1/inboxes/{id}/messages/{messageId}/attachments/{aid}For agents View as Markdown
Streams the raw attachment bytes with the original Content-Type and Content-Disposition headers.
Path parameters
idrequired string | Inbox UUID |
messageIdrequired string | Message UUID |
aidrequired string | Attachment UUID |
Responses
200application/octet-streamAttachment bytes
string
Authentication
Send your API key in the X-API-Key header (or Authorization: Bearer <key>). Any prefix accepted by this endpoint — tk_, wk_, ak_, or sa_ — is documented in the key prefix table.