Mail API reference

Mail API · Mailboxes

delete/v1/workspaces/{workspace_id}/mailboxes/{id}Auth

Soft-delete a mailbox: its status becomes `disabled` and it stops accepting new mail; existing messages are kept until retention purges them, and `PATCH` with `status: active` restores it. A deleted mailbox no longer blocks deleting its domain, and deleting the domain erases it and its remaining mail.

Path parameters

workspace_id*string · uuid

Id of the workspace.

id*string · uuid

Id of the mailboxe.

Response · 204

Mailbox soft-deleted.

Example

Request

DELETE https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/mailboxes/{id}
Authorization: Bearer YOUR_TOKEN