Get the body of an email and its whole thread
Returns the HTML and text body of the requested email, plus every message of its conversation, oldest first: messages received, messages you sent (isMe: true) and drafts in progress. The thread is resolved from the provider thread id when there is one, otherwise from the Message-ID, In-Reply-To and References headers, and is bounded to the mailbox of the email. Works with a draft id too.
Inline images (cid:) are rewritten to presigned storage URLs valid 15 minutes.
Known issue: this response is not passed through the public serializer. Thread messages may also contain internal fields that are not part of the contract: do not rely on them, they may be removed. An unknown id returns NOT_FOUND, not EMAIL_NOT_FOUND.
Authorization
apiKey Your 48 character Emelia API key, the same as for the Emelia API, sent as is (a Bearer prefix is tolerated). Create it at https://v3.emelia.io/settings/api. Disabling a key can take up to 5 minutes to apply to the Inbox API.
In: header
Path Parameters
Inbox id of the email (from GET /emails, webhooks...).
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/emails/cmemacme0000000000000001/body" \ -H "Authorization: YOUR_API_KEY"{ "emailId": "cmemacme0000000000000001", "html": "<div>Thanks John, could we schedule a call next week?</div>", "text": "Thanks John, could we schedule a call next week?", "thread": [ { "id": "cmemacme0000000000000002", "mailboxId": "cmbxacme0000000000000001", "messageId": "<20261008091500.acme01@acme.com>", "references": [], "fromAddress": "john.doe@acme.com", "fromName": "John Doe", "toAddresses": [ { "email": "jane.roe@example.com", "name": "Jane Roe" } ], "date": "2026-10-06T08:00:00.000Z", "subject": "Partnership with Acme", "html": "<div>Hi Jane, would a partnership make sense?</div>", "text": "Hi Jane, would a partnership make sense?", "isMe": true }, { "id": "cmemacme0000000000000001", "mailboxId": "cmbxacme0000000000000001", "messageId": "<CAJacme.0001@mail.example.com>", "references": [ "<20261008091500.acme01@acme.com>" ], "fromAddress": "jane.roe@example.com", "fromName": "Jane Roe", "toAddresses": [ { "email": "john.doe@acme.com" } ], "date": "2026-10-08T09:12:44.000Z", "subject": "Re: Partnership with Acme", "html": "<div>Thanks John, could we schedule a call next week?</div>", "text": "Thanks John, could we schedule a call next week?", "isMe": false, "attachmentsS3": [ { "filename": "brief.pdf", "s3Key": "emails/acme-example/attachments/brief.pdf", "size": 48213, "mimeType": "application/pdf" } ] } ]}