# Handle VENUZ API errors — when to retry and why it failed

> **API v1 is being retired.** [API v2](/v2/) was published on 2026-11-09. v1 stops answering on 2026-12-07 (2026-12-21 if your agency asks for the extension), earlier only if no key uses it and announced at least 7 days before ([Versioning](/versioning/)); the `Sunset` header of each v1 response is the date that applies to your key. [Migrate from v1 to v2](/v2/migrate/).

Every error of the VENUZ API, over HTTP and over MCP, has the same shape. Two fields decide what your agent does next:

- `retryable`: `true` means the SAME request may succeed later. Wait for the `Retry-After` header (over MCP, `details.retry_after_seconds`), then send it again; for a write, with the SAME `Idempotency-Key`. `false` means retrying the same request gives the same answer: do what `fix` says first.
- `details.reason`: why it failed, a stable value to branch on. `resource_not_found`, `account_busy` and every 403 always carry one; other codes carry one when `fix` mentions it.

```json
{
  "error": "account_busy",
  "message": "The account is busy serving other work right now. Nothing was sent.",
  "fix": "Wait for the number of seconds in the Retry-After header, then retry. …",
  "retryable": true,
  "docs_url": "https://docs.venuz.ai/errors/#account_busy",
  "request_id": "req_0123456789abcdef01234567",
  "details": { "reason": "of_rate_limited" }
}
```

## Step 1: Branch on the code {#step-1}

Branch on `error`, never on `message`: the sentence can change, the code does not.

## Step 2: Retry only when retryable is true {#step-2}

If `retryable` is `true`, wait the seconds in `Retry-After` and retry once; do not retry in a loop. `account_busy` with `of_rate_limited` is OnlyFans' own wait; with `account_queue_full`, the account's queue in VENUZ.

## Step 3: Otherwise, fix the request first {#step-3}

If `retryable` is `false`, read `details.reason` and `fix`, change what they say, then send a new request. A `resource_not_found` with `not_found` is the same answer for an item that does not exist and for one this key cannot see, on purpose: VENUZ never tells you that an id belongs to another agency.

## Every code and reason

| Code | HTTP | `retryable` | `details.reason` |
| --- | ---: | --- | --- |
| [`account_busy`](/errors/#account_busy) | 429 | true | `account_queue_full`, `of_rate_limited` |
| [`account_disconnected`](/errors/#account_disconnected) | 409 | false | — |
| [`account_not_allowed`](/errors/#account_not_allowed) | 403 | false | the cause the request hit, or the code itself |
| [`account_transport_unsupported`](/errors/#account_transport_unsupported) | 409 | false | — |
| [`agency_inactive`](/errors/#agency_inactive) | 403 | false | the cause the request hit, or the code itself |
| [`all_accounts_required`](/errors/#all_accounts_required) | 403 | false | the cause the request hit, or the code itself |
| [`api_halted`](/errors/#api_halted) | 503 | true | — |
| [`api_key_expired`](/errors/#api_key_expired) | 401 | false | — |
| [`api_key_revoked`](/errors/#api_key_revoked) | 401 | false | — |
| [`api_key_suspended`](/errors/#api_key_suspended) | 403 | false | the cause the request hit, or the code itself |
| [`api_not_enabled`](/errors/#api_not_enabled) | 403 | false | the cause the request hit, or the code itself |
| [`browser_write_blocked`](/errors/#browser_write_blocked) | 403 | false | the cause the request hit, or the code itself |
| [`bulk_read_limited`](/errors/#bulk_read_limited) | 429 | true | — |
| [`calypso_not_ready`](/errors/#calypso_not_ready) | 409 | false | — |
| [`calypso_unavailable`](/errors/#calypso_unavailable) | 503 | true | — |
| [`change_already_undone`](/errors/#change_already_undone) | 409 | false | — |
| [`change_not_undoable`](/errors/#change_not_undoable) | 409 | false | — |
| [`change_superseded`](/errors/#change_superseded) | 409 | false | — |
| [`export_storage_unavailable`](/errors/#export_storage_unavailable) | 503 | true | — |
| [`feature_disabled`](/errors/#feature_disabled) | 403 | false | the cause the request hit, or the code itself |
| [`idempotency_in_progress`](/errors/#idempotency_in_progress) | 409 | true | — |
| [`idempotency_key_required`](/errors/#idempotency_key_required) | 400 | false | — |
| [`idempotency_key_reused`](/errors/#idempotency_key_reused) | 409 | false | — |
| [`idempotency_outcome_unknown`](/errors/#idempotency_outcome_unknown) | 409 | false | — |
| [`insufficient_scope`](/errors/#insufficient_scope) | 403 | false | `key_missing_scope`, `creator_missing_permission` |
| [`internal_error`](/errors/#internal_error) | 500 | false | — |
| [`invalid_api_key`](/errors/#invalid_api_key) | 401 | false | — |
| [`invalid_request`](/errors/#invalid_request) | 400 | false | see the code |
| [`ip_not_allowed`](/errors/#ip_not_allowed) | 403 | false | the cause the request hit, or the code itself |
| [`limits_unavailable`](/errors/#limits_unavailable) | 503 | true | — |
| [`media_too_large`](/errors/#media_too_large) | 409 | false | — |
| [`media_variant_unavailable`](/errors/#media_variant_unavailable) | 404 | false | — |
| [`not_found`](/errors/#not_found) | 404 | false | — |
| [`not_implemented`](/errors/#not_implemented) | 501 | false | — |
| [`oauth_token_not_accepted`](/errors/#oauth_token_not_accepted) | 401 | false | — |
| [`of_rejected`](/errors/#of_rejected) | 409 | false | — |
| [`of_unavailable`](/errors/#of_unavailable) | 503 | true | — |
| [`preview_invalid`](/errors/#preview_invalid) | 409 | false | — |
| [`preview_required`](/errors/#preview_required) | 400 | false | — |
| [`rank_not_allowed`](/errors/#rank_not_allowed) | 403 | false | the cause the request hit, or the code itself |
| [`rate_limited`](/errors/#rate_limited) | 429 | true | — |
| [`resource_not_found`](/errors/#resource_not_found) | 404 | false | `not_found`, `not_synced_yet`, `drm_protected`, `no_venuz_card`, `not_on_onlyfans`, `not_a_fan_of_account` |
| [`state_conflict`](/errors/#state_conflict) | 409 | false | see the code |
| [`stored_data_unavailable`](/errors/#stored_data_unavailable) | 503 | true | — |
| [`upload_failed`](/errors/#upload_failed) | 409 | false | see the code |
| [`usage_unavailable`](/errors/#usage_unavailable) | 503 | true | — |
| [`vault_fan_not_linked`](/errors/#vault_fan_not_linked) | 409 | false | — |
| [`version_retired`](/errors/#version_retired) | 404 | false | — |
| [`webhook_limit_reached`](/errors/#webhook_limit_reached) | 409 | false | — |
| [`webhook_not_found`](/errors/#webhook_not_found) | 404 | false | — |
| [`webhook_url_rejected`](/errors/#webhook_url_rejected) | 400 | false | see the code |
| [`withdrawal_cap_exceeded`](/errors/#withdrawal_cap_exceeded) | 409 | false | — |
| [`withdrawal_cap_not_set`](/errors/#withdrawal_cap_not_set) | 409 | false | — |
| [`write_store_unavailable`](/errors/#write_store_unavailable) | 503 | true | — |
| [`writes_not_enabled`](/errors/#writes_not_enabled) | 403 | false | the cause the request hit, or the code itself |

| Code | `details.reason` | Meaning |
| --- | --- | --- |
| `account_busy` | `account_queue_full` | The account's queue in VENUZ is serving other work (every key of the agency and VENUZ itself share it). |
| `account_busy` | `of_rate_limited` | OnlyFans itself asked to slow down on this account; Retry-After is the wait OnlyFans asked for. |
| `insufficient_scope` | `key_missing_scope` | The key does not have the permission (details.missing_scopes). |
| `insufficient_scope` | `creator_missing_permission` | The key has the permission but the person who created it cannot do this in VENUZ today (details.withheld_by_creator is true). |
| `resource_not_found` | `not_found` | There is no such item, or this key cannot see it (the same answer on purpose, so ids cannot be probed). |
| `resource_not_found` | `not_synced_yet` | The item exists on OnlyFans but VENUZ has not read it yet: this answer is retryable, so send the same request again after Retry-After. |
| `resource_not_found` | `drm_protected` | The item exists but OnlyFans protects it with DRM, so there is no file to download. |
| `resource_not_found` | `no_venuz_card` | The fan has paid this account but has no card in VENUZ yet: details.fix says what works for this fan. |
| `resource_not_found` | `not_on_onlyfans` | OnlyFans has no user with this id. |
| `resource_not_found` | `not_a_fan_of_account` | The user exists on OnlyFans but is not a fan of this account. |

The meaning and fix of each code: [errors](/errors/).

VENUZ is independent software for agencies. It is not affiliated with, endorsed or sponsored by OnlyFans. OnlyFans is a trademark of its owner.
