Easymailing
Email drafts

List my email drafts

GET /email_drafts

GET/email_drafts

Lists the unsent email drafts of the user who owns the token, newest first, without their body. A draft is an email that is being written and has not been sent; it can be incomplete.

When to use: To see what the user has started but not sent, or to find a draft to continue, edit or send.

When not to use: To read the body of one draft, use get_email_draft. To see emails that are already queued, scheduled or failed, use list_email_sends. To see emails received or sent, use the email read operations (list_emails).

Filters: No filters and no pagination: all the drafts of the user are returned (at most 200).

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

Response Body

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/email_drafts" \  -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",    "forwarded_attachment_ids": [      "string"    ],    "attachments": [      {}    ],    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }]