Download raw .eml source
GET
https://myagentmail.com/v1/inboxes/{id}/messages/{messageId}/rawFor agents View as Markdown
Returns the full RFC 5322 source as message/rfc822. Only available for inbound messages; outbound messages do not persist their raw source.
Path parameters
idrequired string | Inbox UUID |
messageIdrequired 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.