Email accounts
DELETE
/email-accounts/{id}

Remove the mailbox from the workspace: its email threads go with it, it leaves every campaign pool, and leads it was emailing move to the remaining mailboxes. Its threads are deleted. Connecting the same address again within the restore window (15 days by default, set by Swarmhit) brings it back to its campaigns, its leads and its settings, under a new id with restoredFrom set; after the window it comes back as a new mailbox. Needs the email channel enabled for the workspace (403 otherwise). A mailbox bought through Swarmhit (managed set) is never removed this way: 409 with code: managed-mailbox; cancel it with POST /email-accounts/{id}/cancel-managed instead.

Authorization

bearerAuth
AuthorizationBearer <token>

An API key created under Settings → API & Webhooks.

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/email-accounts/string"
{  "data": {    "ok": true  }}