Schedule this workspace for deletion (owner only)
POST/api/workspace/deletion
OWNER ONLY (403 not_owner). Proves intent three ways: the workspace
name typed exactly, the account password, and — when the account has
two-factor on — a current code (two_factor_method + two_factor_code;
e-mail / SMS codes come from POST /api/workspace/deletion/two-factor-code).
The workspace closes at once (403 pending_deletion everywhere but
/api/me, this resource and sign-out; the widget and public pages stop
resolving it; members can no longer sign in to it), its channels are
paused and their provider webhooks released, renewals stop, and the
owner is e-mailed the restore deadline. The data is purged after 30
days. Remaining credit and wallet balance are not refunded.
Throttled (6/min) against password guessing.
Request
Responses
- 202
- 401
- 403
- 409
- 422
- 429
Scheduled. The state now reads pending.
Not authenticated. code: account_disabled means the member's seat was deactivated in this workspace: the session is over even though the token was not revoked (clients sign out and clean up).
Authenticated but not allowed.
Already scheduled (already_pending).
The request failed validation.
Too many attempts.