auth

Leave the workspace (ФЗ-152 §14 right-to-be-forgotten).

Soft-deletes the authenticated user. PII columns (email, password_hash) are wiped immediately. The workspace (tenant) survives if any other person in it is still alive — only the caller's own API keys are revoked in that case. If the caller was the workspace's last living person, the whole workspace is soft-deleted with them (response field workspace_deleted=true), same as before Task A4. An administrator with other living members but no other administrator is refused with 409 last_admin_cannot_leave (Task A4, docs/technical/team-mode-a4-contract-2026-09-01.md §2.2) — pass the admin role to someone else first, or remove the other members. Deletion is immediate and irreversible: there is no cooling-off period (CEO 2026-09-01). JWT-only: API-key auth returns 401 (per STRIDE A1 — keys are revoked as part of the deletion, so they cannot be the auth mechanism here). To erase the ENTIRE workspace regardless of who else is in it, use DELETE /v1/workspace (admin only).

delete/v1/auth/profile

Request

  • Base URL: https://api.andish.ru (the document declares no server; this is the origin it was published from)
  • URL: https://api.andish.ru/v1/auth/profile
  • Auth: none declared

Response

Account soft-deleted — PII wiped, sessions revoked.

deleted_atstring date-time required

UTC timestamp when the account was soft-deleted.

data_removal_etastring required

Human-readable note on data removal. Personal data (email, password hash) is wiped immediately and cannot be undone; this field describes only the (not yet scheduled) physical purge of the remaining soft-deleted rows — it is never a promise that the deletion itself can be reversed.

workspace_deletedboolean

True only when the caller was the workspace's last living person and the whole workspace was soft-deleted along with them. False means the caller left and the workspace, with its documents and the other members' keys, is untouched.

Changes

No recorded changes to this operation across all 1 revision of this API.