Scrub API
POST/v1/tools/close_accountfree

Close your account

Closes this account and its workspace for good. Free. Called without confirm, it closes nothing: it says what goes (files, drafts, flows, chats, jobs, connected AIs, API keys, computers), what is kept for tax, what happens to a paid plan and the credit left, and gives a code. Called again with that code as confirm, within ten minutes, it closes them. Closing cancels a paid plan, signs out everywhere, deletes every file and record but the payment records the law keeps, and emails the account’s address that it is done. download_everything gives every file first.

Fields

FieldTypeDefaultWhat it is
confirmstringNoneThe code the first call gave

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/close_account \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Answer

{
  "ok": true,
  "result": {
    "…": "…"
  }
}

What result holds is said above.

Every call can also answer an error: what comes back. Try it with your key from Account.