Emails
Get an email body and its thread
GET
/emails/{emailId}/bodyReturns the rendered body plus every message of the conversation, oldest first.
Authorization
apiKey AuthorizationBearer <token>
Send your key as Authorization: Bearer mk_…. Session cookies are never accepted on this surface.
In: header
Path Parameters
emailId*string
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/emails/string/body" \ -H "Authorization: Bearer $MAYLEE_KEY"{ "emailId": "cmemx1a2b3c4d5e6f7g8h9i0", "html": "<p>Hello, could you send us a quote for the annual plan?</p>", "text": "Hello, could you send us a quote for the annual plan?", "thread": [ { "date": "2026-08-25T13:47:02.000Z", "fromAddress": "client@acme.com", "fromName": "Jane Client", "html": "<p>Hello, could you send us a quote for the annual plan?</p>", "id": "cmemx1a2b3c4d5e6f7g8h9i0", "isMe": false, "mailboxId": "cmbx1a2b3c4d5e6f7g8h9i0j", "messageId": "<CAF3k9x1@mail.example.com>", "references": [], "subject": "Quote request", "text": "Hello, could you send us a quote for the annual plan?", "toAddresses": [ { "email": "contact@your-company.com" } ] } ]}Get an email GET
Metadata of one email, without its body. It carries what a reply in the same thread needs: `mailboxId`, `messageId`, `references` and `from`.
Bulk mark-read, delete, apply or remove a label POST
Counts against the quota once per email processed, not once per request. Supports `Idempotency-Key`.