Auth

Delete Account

Delete your account: memberships, sessions, API keys and personal notifications go with it; what you created in workspaces stays, attributed to nobody. 409 `{code: "sole_owner", workspaces}` while you are the only owner of a workspace (make someone else an owner, or schedule its deletion, first). Needs the current password and your email typed as `confirm`. The refresh cookie is cleared.

API key access

Not available to API keys or connected apps: only a signed-in person can call this route.
POST/api/v1/auth/account/delete
AuthorizationBearer <token>

Access token from /api/v1/auth/login, or an API key (ro_pat_..., RO-176) from /api/v1/workspaces/current/api-keys: the key implies its workspace and needs the route's scope. MCP connectors (/api/v1/mcp only) may use an OAuth access token (ro_oat_..., RO-284).

In: header

password?string | null

The current password (required when the account has one).

Lengthlength <= 256
confirmstring

The account's email address, typed to confirm.

Length1 <= length <= 320

Response Body

curl -X POST "http://localhost:8000/api/v1/auth/account/delete" \  -H "Content-Type: application/json" \  -d '{    "confirm": "string"  }'
Empty
Empty
Empty
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
Empty