API Reference
Me · Account Deletion
Ask to delete your own account.
/api/v1/console/me/account-deletion JWTDelete my account
Body `{ "password": "…" }` — the account's current password.
200 `data.outcome = "deleted"`: the account is anonymised and disabled, every session and refresh token revoked, and the email free for a new account; the client signs out locally.
200 `data.outcome = "requested"`: the caller is the only active owner of their organisation; a pending request is recorded (nothing is revoked) and the restaurant account will be closed and personal data deleted within 30 days. A repeated call while pending returns the same `requestId` and `requestedAt`.
422 missing password (`errors.password`) or wrong password (`errors.password`, "The password is incorrect.", counted against the sign-in lockout); 429 the account is locked after five wrong passwords (15 minutes); 401 not signed in; 403 an API key or OAuth bearer.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"password": "string"
}| password string | The account's current password. Required. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/me/account-deletion" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"password": "string"
}'Request body (JSON)
Headers