Download the message at EML
GET
/v1/mailboxes/{mailbox_id}/messages/{uid}/emlReturns the original MIME bytes, including headers and attachments, without marking the message as read. PDF export uses browser printing; there is no separate PDF endpoint.
Authentication and access · Errors and retries
Request
curl -X GET 'https://adapt-mail.com/v1/mailboxes/<mailbox_id>/messages/<uid>/eml?uidvalidity=<uidvalidity>' \ -H 'Authorization: Bearer <access_token>'Parameters
mailbox_idpathNecessarilyintegeruidpathNecessarilyintegeruidvalidityqueryNecessarilyintegerfolderquerystringDefault:
"INBOX"X-Customer-IDheader- Option 1
stringOption 2null
Responses
200 Successful response
message/rfc822
string · binary
401 Login required
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject
403 No access
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject
404 Resource not found
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject
409 State conflict
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject
422 Validation error
application/json
object
detailarrayArray elementsobjectlocNecessarilyarrayArray elementsOption 1stringOption 2integermsgNecessarilystringtypeNecessarilystring
503 Temporarily unavailable
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject