API referenceEmail messages
DELETE
/email/api/v1/emails/{id}

To the Trash; permanent=true deletes it for good.

Authorization

X-API-KEY<token>

Your API key from the console (gw_live_…).

In: header

Path Parameters

id*string

An email (emm_…), or the engine's own id (provider_id) with account_id.

Query Parameters

account_id?string

The mailbox (em_…): required with a provider id, else it must be the id's own.

permanent?boolean

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/email/api/v1/emails/string"
{  "object": "EmailDeleted"}