Skip to main content

Account API

Account deletion is a dashboard action. Both endpoints are session only; an API key gets 401 unauthorized.

GET /api/v1/account/delete-check​

Whether the signed-in account can be deleted right now.

{ "canDelete": true }

Deletion is blocked by an active paid subscription, or by a Team workspace you own that still has other active members:

{
"canDelete": false,
"reason": "active_plan"
}
{
"canDelete": false,
"reason": "team_workspace_with_members",
"workspaces": [
{ "id": "ws_123", "name": "Halvard", "memberCount": 4 }
]
}

Cancel the subscription first, or transfer or empty those workspaces.

DELETE /api/v1/account​

Deletes the signed-in account and its personal data. Workspaces you own and their documents are deleted with it. Billing history for canceled subscriptions is kept for accounting, with the user and workspace references removed.

Status 204 No Content on success.

StatusCodeWhen
401error: "unauthorized"No valid session
409code: "active_plan"You have an active Pro or Team subscription
409code: "team_workspace_with_members"You own a Team workspace with other active members

The 409 body is the delete-check result plus code, and has no error field:

{
"code": "team_workspace_with_members",
"canDelete": false,
"reason": "team_workspace_with_members",
"workspaces": [{ "id": "ws_123", "name": "Halvard", "memberCount": 4 }]
}