# Delete your Webcite account

Close your Webcite account with POST /api/v1/account/deletion: keys, OAuth grants and sessions end at once, billing stops, and the data is removed within 30 days.

Documentation index: https://webcite.co/llms.txt
Canonical page: https://webcite.co/api-docs/delete-account
API origin: https://api.webcite.co
Authentication: x-api-key header. Keep keys on your server.

## Request

`POST https://api.webcite.co/api/v1/account/deletion` closes the account you are signed in to. It takes the bearer token of a webcite.co sign-in made in the last 15 minutes, and the account's email address typed again as `confirm_email`. The email is compared without regard to case or surrounding spaces. An API key cannot close an account, so this route is outside the public [OpenAPI file](/api-docs/openapi.json). The call is free. [support@webcite.co](mailto:support@webcite.co) can help you close your account.

```bash
curl --fail-with-body -X POST 'https://api.webcite.co/api/v1/account/deletion' \
  -H "Authorization: Bearer $WEBCITE_SESSION_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"confirm_email": "you@example.com"}'
```

## What the request does

In one transaction the request:

- revokes every API key and OAuth grant of the account at once;
- deletes the account's stored third-party sign-in tokens;
- closes the account, so its signed-in sessions stop working within a minute;
- records the deletion request.

It then stops billing: a free plan ends at once, and a paid plan is set to stop renewing at the end of the period already paid, with no refund.

Within 30 days of the request, the account's data is removed: files, extracted data, search entries, cached readings, verification and review results, API keys and sessions. Kept after that, with personal fields cleared, for billing and tax records: the account record reduced to its identifier, subscriptions, payments, credit and usage ledgers, checkout identifiers, and a record that the removal happened.

To remove files, verification results and document reviews straight away, delete them before you close the account, with [delete an uploaded file](/api-docs/delete-file), [delete a verification result](/api-docs/delete-citation), [bulk delete of verification results](/api-docs/delete-citations) and [delete document reviews](/api-docs/delete-document-reviews). Your API keys stop working once the account is closed.

## Response

HTTP 202 returns a receipt. In this example the identifier and times are placeholders.

```json
{
  "status": "scheduled",
  "request_id": "00000000-0000-4000-8000-000000000041",
  "requested_at": "2026-11-26T10:00:00.000Z",
  "purge_due_by": "2026-12-26T10:00:00.000Z",
  "api_keys_revoked": 3,
  "billing": "stopped"
}
```

- `status`: `scheduled` for a new request.
- `request_id`: the id of the deletion request.
- `requested_at`: when the request was recorded.
- `purge_due_by`: 30 days after `requested_at`, the latest time by which the account's data is removed.
- `api_keys_revoked`: the number of API keys and OAuth grants this request revoked.
- `billing`: `stopped` when billing was stopped during the request, `retrying` when the call to the billing provider failed. Write to support if you see `retrying`.

## Errors

Errors carry a `code` and a `message`.

- 400 `confirmation_mismatch`: `confirm_email` is not the account's email address. A value that is not an email address also returns 400.
- 401 `reauth_required`: the sign-in is older than 15 minutes. Sign in again, then confirm within 15 minutes.
- 403 `session_required`: the request used an API key instead of a signed-in session.

```json
{
  "code": "reauth_required",
  "message": "Sign in again, then confirm deletion within 15 minutes."
}
```
