Easymailing
Email sends

Reopen a queued or failed email to edit

POST /email_sends/{uuid}/actions/reopen

POST/email_sends/{uuid}/actions/reopen

Returns the full content of a send that has not left (queued, scheduled, failed or unconfirmed) so it can be edited and sent again: recipients, subject, body, and a fresh copy of each attachment. The original send is not changed.

When to use: To fix and resend a failed email, or to change the text or time of a queued or scheduled one. Flow: reopen, then (if it was queued) cancel_email_send, then send_email or schedule_email with replaces_send set to this send, or create_email_draft to leave it for the user.

When not to use: To only change the time, you do not need this: cancel and schedule again. To read the status, use get_email_send; the body is not returned there. A send that already left cannot be reopened.

Side effects: Creates a loose copy of every attachment (valid for 24 hours; unused copies are deleted by themselves). A queued original keeps going out until you cancel it, so cancel it before sending the edited email or the recipients get both. Nothing is sent.

Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. Only the author of the send can do it.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the send.

Formatuuid

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://api.easymailing.com/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5/actions/reopen" \  -H "X-Auth-Token: YOUR_API_KEY"
{  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "state": "queued",  "sender_uuid": "6fd60e87-ecde-4069-8fdb-aebbacafea6d",  "record": "/entity/1",  "record_type": "contact",  "record_name": "string",  "contact_email": "string",  "mode": "compose",  "source_email": "/entity/1",  "to": [    "string"  ],  "cc": [    "string"  ],  "bcc": [    "string"  ],  "subject": "string",  "body_html": "string",  "forwarded_attachment_ids": [    "string"  ],  "attachments": [    {}  ]}