Skip to the documentation
API

Retrieve a draft

Recipients, subject, body, the thread it belongs to, the sender, and the names of any attachments.

GETapi.openemail.uk/drafts/{id}

Runs the real call against your workspace, with your own key.

GET /drafts/{id}

Recipients, subject, body, the thread it belongs to, the sender, and the names of any attachments.

Example

Needs drafts:read.

curl
curl "$OE/drafts/draft-fdc85673-…" -H "$AUTH"
Response
{  "object": "draft",  "id": "draft-fdc85673-…",  "to": ["[email protected]"],  "cc": [],  "bcc": [],  "subject": "Draft subject",  "html": "<p>Half a thought.</p>",  "threadId": null,  "from": null,  "attachments": [{ "filename": "notes.pdf", "contentType": "application/pdf" }]}

Attachment metadata only. The bytes live on the message, not the draft.