Delete your account
const url = 'https://api.sloose.com/auth/account/delete';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"confirm":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.sloose.com/auth/account/delete \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "confirm": "example" }'Deletes the person behind the session, everywhere, at once: every session and sign-in link, the Zoho sign-ins linked to the account (so none can find it again), passkeys and second factor, every organisation membership, the apps granted access over MCP (their tokens stop working), requests to join, invitations to the address that were never accepted, and their own connections, whose credentials go with the rest and are each sent to Zoho to be revoked (Zoho may refuse or be down; that is named in warnings, and the account is deleted regardless). What they did for an organisation stays as the organisation’s record, as “a deleted person”, with every copy of the address in it replaced; the address is freed, so signing up with it again is a new person. One message goes to the address saying it is done. Refused while the person is the only owner of an open organisation (close it, or make someone else an owner, first) or the last staff member, and — when a second factor is enrolled — unless this session passed one recently. confirm must be the account’s own email. Session only.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
The account’s own email, typed.
Examplegenerated
{ "confirm": "example"}Responses
Section titled “Responses”Deleted. The bearer that asked no longer works.
object
What a provider would not do on the way out — a grant it would not revoke, or can only end by hand — each in a sentence. The account is deleted regardless.
The same grants as a list: each one’s provider and where the person removes Sloose to end it, for a page to say in its own words.
A grant its provider may still hold — it would not take it back, or ends it only by hand — with where a person ends it.
object
Who issued the grant.
Where a person removes Sloose to end it, completing “remove Sloose under …”.
The provider has no way for Sloose to revoke one grant: removing Sloose there is the only way it ends. False when the provider would not take it back this time.
The message saying it is done was accepted for delivery. False when it was not — the account is deleted regardless, and nothing can send it again.
Example
{ "ok": true, "unrevoked": [ { "provider": "Zoho", "removedAt": "Connected Apps in your Zoho account" } ]}confirm is not the account’s email (code: CONFIRMATION_MISMATCH), or the body is not { confirm } (code: INVALID_BODY).
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}No bearer, or one that no longer resolves: a session that is unknown or expired (code: AUTH_REQUIRED), or an API token that was revoked or expired (TOKEN_REVOKED, TOKEN_EXPIRED), whose organisation is gone (ORG_NOT_FOUND) or whose member or user row is (MEMBERSHIP_GONE).
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}An API token was used (code: SESSION_REQUIRED), the person is banned (code: BANNED), the session is a staff member’s view of an organisation (code: STAFF_VIEW), or a second factor is enrolled and this session has not passed one recently (code: SECOND_FACTOR_REQUIRED).
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}The person is the only owner of an open organisation (code: SOLE_OWNER, naming each in orgs), or the last staff member (code: LAST_STAFF) — asked inside the deletion’s own transaction as well as before it — or the account changed as it was being deleted (code: ACCOUNT_CHANGED).
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}The restore switch is on (code: MAINTENANCE): every route but /health and /robots.txt is refused before anything is read, except the operator’s own POST /staff/people/{id}/delete with the ADMIN_TOKEN. Sloose is down for maintenance. Please try again in a few minutes.
object
Example
{ "code": "MAINTENANCE"}Headers
Section titled “Headers”Seconds until asking again is worth it (300 while the switch is on).