SendLit logoSendLit Docs
API ReferenceAccountDeletion

Preview deleting your account

Dashboard session only. Lists every organization you belong to and what deleting your account does to it: `delete` when you are its last owner (it is deleted and its contacts' personal data erased), `leave` otherwise. `blocker` says what has to happen first: `active_subscription_exists` or `billing_checkout_pending` (cancel billing), `last_organization_owner` (other people are members: make one of them an owner or remove them), `billing_manager_required` (you pay for a running subscription of an organization you would leave). **Authentication:** Requires a dashboard session cookie; OAuth access tokens and API keys are not accepted. Requests must pass the dashboard's same-origin and CSRF checks. Sensitive billing actions require recent authentication and a single-use billing action token; POST /billing/action-token issues that token.

GET
/account/deletion

Dashboard session only. Lists every organization you belong to and what deleting your account does to it: delete when you are its last owner (it is deleted and its contacts' personal data erased), leave otherwise. blocker says what has to happen first: active_subscription_exists or billing_checkout_pending (cancel billing), last_organization_owner (other people are members: make one of them an owner or remove them), billing_manager_required (you pay for a running subscription of an organization you would leave).

Authentication: Requires a dashboard session cookie; OAuth access tokens and API keys are not accepted. Requests must pass the dashboard's same-origin and CSRF checks. Sensitive billing actions require recent authentication and a single-use billing action token; POST /billing/action-token issues that token.

sendlit.session_token<token>

Better Auth dashboard session cookie used for local HTTP connections.

In: cookie

Response Body

application/json

application/json

application/json

curl -X GET "https://api.sendlit.app/account/deletion"
{
  "email": "string",
  "organizations": [
    {
      "organizationId": "string",
      "name": "string",
      "status": "pending_payment",
      "role": "owner",
      "action": "delete",
      "teamCount": 0,
      "blocker": "active_subscription_exists"
    }
  ],
  "blocked": true
}
Empty
{
  "error": "string"
}
{
  "error": "string"
}