All endpoints

Download an attachment

GEThttps://myagentmail.com/v1/inboxes/{id}/messages/{messageId}/attachments/{aid}

Streams the raw attachment bytes with the original Content-Type and Content-Disposition headers.

Path parameters

id
required
string

Inbox UUID

messageId
required
string

Message UUID

aid
required
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.