DELETE
cURL
Stops a waiting message: the same as Undo or Cancel send in webmail. The message is kept as a draft in the mailbox’s Drafts folder, under draft_id (today the same as id), and its content comes back in draft so you can reopen it in your composer. Send it again with draft_id set, and the draft is removed once it goes. draft.html has the mailbox signature taken out (it is added again when the message is next sent) and its pictures put back as data: URLs, up to the 1,800,000 characters a draft holds. Pictures that do not fit, and any files a webmail message had attached, are left out and counted in draft.omitted_attachments. If the message has already gone, or is on its way, nothing changes and the response is 409 with the code already_sent.
Needs an API key with full access.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
Required string length: 1 - 64
Pattern: ^[A-Za-z0-9_-]+$
Example:

"cm9msg123"

Response

Stops the message and returns its content to reopen in a composer. It is kept as a draft in the mailbox's Drafts folder, under the same id.

id
string
required
cancelled
enum<boolean>
required
Available options:
true
draft_id
string
required

The id the draft now lives under, in the mailbox's Drafts folder (today the same as id). Pass it as draft_id when sending the message again, so the draft is removed.

draft
object
required