API referenceEmail accounts
DELETE
/email/api/v1/accounts/{id}

The engine forgets it (its credentials included) and DELETED is sent. A mailbox the engine already lost is deleted all the same. provider_session_revoke is accepted and ignored.

Authorization

X-API-KEY<token>

Your API key from the console (gw_live_…).

In: header

Path Parameters

id*string

A mailbox (em_…).

Query Parameters

provider_session_revoke?boolean

Accepted for compatibility; ignored.

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/email/api/v1/accounts/em_gX2kP9qL4mT7vB1nR8sW3yZ"
{  "object": "AccountDeleted"}