All endpoints

Download raw .eml source

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

Returns the full RFC 5322 source as message/rfc822. Only available for inbound messages; outbound messages do not persist their raw source.

Path parameters

id
required
string

Inbox UUID

messageId
required
string

Message UUID

Responses

200message/rfc822Raw email source
string
404Raw source not available

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.