Skip to content

Delete your account

POST
/auth/account/delete
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.

Media typeapplication/json
object
confirm
required

The account’s own email, typed.

string
Examplegenerated
{
"confirm": "example"
}

Deleted. The bearer that asked no longer works.

Media typeapplication/json
object
ok
required
boolean
warnings
required

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.

Array<string>
unrevoked
required

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.

Array<object>

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
provider
required

Who issued the grant.

string
removedAt
required

Where a person removes Sloose to end it, completing “remove Sloose under …”.

string
byHand
required

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.

boolean
mailed
required

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.

boolean
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).

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
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).

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
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).

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
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).

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
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.

Media typeapplication/json
object
error
required
string
code
required
string
Allowed value: MAINTENANCE
Example
{
"code": "MAINTENANCE"
}
Retry-After
integer

Seconds until asking again is worth it (300 while the switch is on).

Report a problem with this page

sloose.com