API reference · Account
Delete this account and everything it holds
DELETE/api/accountSigned in session
Irreversible. Removes keys, policies, provider keys, conversations, saved prompts, settings, and sessions, then revokes every session. Requires a typed confirmation in the body so a stray request cannot trigger it.
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| confirmrequired | string | Must read "delete my account". |
| forfeit | boolean | Required, as true, when the account still holds credit: erasure detaches the ledger and the balance is gone with it. Without it a funded account answers 409 balance_remaining with the balance. |
Example
{
"confirm": "string",
"forfeit": false
}Answer 200
The account is gone and the session cookie is cleared.
The answer's fields are not named in the document.
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 409OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.