Easymailing
Email drafts

Get an email draft

GET /email_drafts/{uuid}

GET/email_drafts/{uuid}

Returns one draft with its body, recipients, attachments and current revision.

When to use: To read the text of a draft, or to get the current revision before calling update_email_draft.

When not to use: To list the drafts, use list_email_drafts. To read a send that already exists, use get_email_send.

Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. Drafts are private: only their author can read or change them.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the draft.

Formatuuid

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/email_drafts/3a9e1f53-0000-4000-8000-6c474d08b1a4" \  -H "X-Auth-Token: YOUR_API_KEY"
{  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "revision": 0,  "sender_uuid": "6fd60e87-ecde-4069-8fdb-aebbacafea6d",  "record": "/entity/1",  "record_type": "contact",  "record_name": "string",  "mode": "compose",  "source_email": "/entity/1",  "to": [    "string"  ],  "cc": [    "string"  ],  "bcc": [    "string"  ],  "subject": "string",  "body_html": "string",  "forwarded_attachment_ids": [    "string"  ],  "attachments": [    {}  ],  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}