Mailboxes

Delete a draft

Discards an unsent draft. Use this endpoint to delete a draft through the Samva email API.

DELETE
/v1/mailboxes/{id}/drafts/{draftId}

Discards an unsent draft.

x-api-key<token>

In: header

Path Parameters

id*string
Match^mbx_[0-9a-hjkmnp-tv-z]{16,24}$
draftId*string
Match^mdraft_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/mailboxes/string/drafts/string"
{  "success": true}

Related documentation