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.
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.
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
}{
"error": "string"
}{
"error": "string"
}Headless organization setup
Configure shared delivery once, then provision teams with a least-privilege organization key.
Delete your account POST
Dashboard session only, with the account's email typed to confirm and the code from `POST /account/deletion/code` (`400 email_mismatch`, `400 invalid_code`). Fails with `409 account_deletion_blocked`, listing the blocking organizations, while any blocker from `GET /account/deletion` remains; nothing changes then. Otherwise every organization you are the last owner of is deleted like `DELETE /organizations/:organizationId` and its contacts, signup confirmations, recipient addresses and raw webhook payloads are erased (suppression hashes stay); you leave every other organization and team; your sessions, sign-in methods, OAuth tokens and consents end; and your name and email are erased. Billing records and audit events keep an anonymous id. Signing in again with the same email creates a new, empty account. **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.