> ## Documentation Index
> Fetch the complete documentation index at: https://docs.joip.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors

> Every Joip API error code, what it means, and exactly what to do

Every error is an RFC 9457 problem sent as `application/problem+json`. The body's `request_id` matches the `X-Request-Id` response header, and `type` links to the code's section on this page.

```json theme={"system"}
{
  "type": "https://docs.joip.io/api-reference/errors#insufficient_credits",
  "title": "Insufficient credits",
  "status": 402,
  "detail": "There are not enough available credits for this request.",
  "instance": "/v1/captions/generate",
  "code": "insufficient_credits",
  "param": null,
  "request_id": "req_01j5v6m7n8p9q0r1s2t3u4v5w6"
}
```

Branch on `code`, never on `title` or `detail`. `code` and `status` are stable for v1; `title` is the catalog's short name for the code and `detail` says what went wrong in this request. `param` names the field, query parameter or header at fault, or is `null`.

Log `request_id`, `status` and `code`. Never log the `Authorization` header, source media or generated caption text.

> [!NOTE]
>
> The same catalog is machine-readable: the OpenAPI document publishes it as `x-joip-error-codes`, a list of `{ code, status, title, retryable, description }`.

## How to read "Retryable"

**Yes** means the same request can succeed later without any change. Wait for `Retry-After` when it is sent, otherwise back off with jitter, and for job creation reuse the same `Idempotency-Key` so a retry can never create a second job. The [official SDKs](https://docs.joip.io/api-reference/sdks.md) retry `429` and `503` for you. **No** means the request fails the same way until you change it, the key, or the account.

## Every error code

| Code | Status | Retryable | Meaning |
| - | - | - | - |
| `method_not_allowed` | 405 | No | The method isn't allowed on this route. |
| `browser_access_not_allowed` | 403 | No | The request carried an `Origin` header. |
| `session_auth_not_allowed` | 401 | No | The request carried a `Cookie` header at the edge. |
| `cookie_not_allowed` | 401 | No | The request reached the API with cookie credentials. |
| `json_required` | 415 | No | The body isn't sent as `application/json`. |
| `invalid_json` | 400 | No | The body isn't valid JSON. |
| `invalid_content_length` | 400 | No | `Content-Length` isn't a non-negative integer. |
| `request_too_large` | 413 | No | The JSON body is over 1 MiB. |
| `not_found` | 404 | No | No API route exists at this path. |
| `route_not_available` | 404 | No | The operation isn't part of API v1. |
| `invalid_api_key` | 401 | No | The key is missing, malformed, unknown, expired or revoked. |
| `insufficient_scope` | 403 | No | The key lacks the scope this operation needs. |
| `ip_not_allowed` | 403 | No | The calling address isn't on the key's IP allowlist. |
| `invalid_allowed_ips` | 400 | No | The key's stored IP allowlist can't be evaluated. |
| `invalid_forwarded_address` | 400 | No | The client address couldn't be verified. |
| `api_account_suspended` | 403 | No | The account that owns the key is inactive. |
| `account_not_found` | 404 | No | The account for this key no longer exists. |
| `credits_not_found` | 404 | No | The account has no credit balance yet. |
| `invalid_request` | 400 | No | The JSON body failed validation. |
| `invalid_query` | 400 | No | A query parameter is unknown or invalid. |
| `invalid_path` | 400 | No | A path parameter is malformed. |
| `invalid_cursor` | 400 | No | The cursor is malformed, altered or from another list. |
| `invalid_idempotency_key` | 400 | No | `Idempotency-Key` is missing or not 8 to 255 characters. |
| `media_unavailable` | 400 | No | A media URL doesn't point to a public HTTPS host. |
| `job_not_found` | 404 | No | No job with this ID exists for your account. |
| `idempotency_conflict` | 409 | No | The key was already used with a different body. |
| `idempotency_in_progress` | 409 | Yes | The first request with this key is still being accepted. |
| `insufficient_credits` | 402 | No | Available credits don't cover the reservation. |
| `rate_limit_exceeded` | 429 | Yes | The key or address is over its per-minute limit. |
| `admission_unavailable` | 429 | Yes | The account's hourly job or item allowance is full. |
| `pricing_unavailable` | 503 | Yes | The current caption price couldn't be loaded. |
| `queue_unavailable` | 503 | Yes | The job was recorded but couldn't be queued. |
| `api_ingress_unavailable` | 503 | Yes | The API couldn't verify the request came through Joip's edge. |
| `api_not_configured` | 503 | Yes | The edge isn't configured to reach the API service. |
| `invalid_acceptance_contract` | 502 | Yes | The API service returned an incomplete job acceptance. |
| `invalid_upstream_response` | 502 | Yes | The edge couldn't pass on the API service's response. |
| `internal_error` | 500 | Yes | Joip couldn't complete the request. |

## method\_not\_allowed

**405, not retryable.** The HTTP method isn't allowed on this route. `/`, `/status` and `/openapi.json` accept only `GET` and `HEAD`, and `OPTIONS` preflight requests are always refused because the API never serves browsers. Use the method shown for the operation in the [API reference](https://docs.joip.io/api-reference/overview.md).

## browser\_access\_not\_allowed

**403, not retryable.** The request carried an `Origin` header, which means it came from a browser. The API serves server-side clients only. Move the call to your backend and keep the key there; never call the API from a web page or mobile app.

## session\_auth\_not\_allowed

**401, not retryable.** The request carried a `Cookie` header when it reached Joip's edge. A signed-in Joip web session never authenticates API requests. Remove every cookie and send `Authorization: Bearer joip_live_...` instead.

## cookie\_not\_allowed

**401, not retryable.** The request reached the API service with cookie credentials. Remove the `Cookie` header and authenticate with a Bearer API key only.

## json\_required

**415, not retryable.** A request body must be sent with `Content-Type: application/json`. Set that header on every `POST`.

## invalid\_json

**400, not retryable.** The body isn't valid JSON. Serialize it with your language's JSON encoder rather than building the string by hand, and check for trailing commas or unescaped quotes.

## invalid\_content\_length

**400, not retryable.** The `Content-Length` header isn't a non-negative integer. Let your HTTP client set it, or remove it.

## request\_too\_large

**413, not retryable.** JSON bodies can't exceed 1 MiB. A caption request holds at most ten URLs, so a body this large usually means something else was sent by mistake. Send only the documented fields.

## not\_found

**404, not retryable.** No API route exists at this path. Check the path and its `/v1` prefix against the [OpenAPI document](https://api.joip.io/openapi.json).

## route\_not\_available

**404, not retryable.** The path is reserved for an operation that isn't part of API v1. Only the operations in the OpenAPI document are live; asset uploads, sessions, Censor, BabeCock, Undress, sharing and webhooks aren't public yet.

## invalid\_api\_key

**401, not retryable.** The Bearer credential is missing, malformed, unknown, expired or revoked. Send `Authorization: Bearer joip_live_...` with the full key exactly as revealed. If the key expired or was revoked, create a new one in the [API dashboard](https://joip.com/joip-api). Repeated invalid keys from one address lead to `rate_limit_exceeded`.

## insufficient\_scope

**403, not retryable.** The key doesn't grant the scope this operation requires, for example a read-only key calling `POST /v1/captions/generate`. Create a key with the scope listed on the operation; an existing key never gains scopes.

## ip\_not\_allowed

**403, not retryable.** The key has an IP allowlist and the calling address isn't on it. Call from an allowed server, or create a key whose allowlist includes this server's public address.

## invalid\_allowed\_ips

**400, not retryable.** The key's stored IP allowlist can't be evaluated. Revoke the key in the dashboard and create a new one with a valid allowlist.

## invalid\_forwarded\_address

**400, not retryable.** Joip couldn't verify the client address forwarded by its edge. Send requests directly to `https://api.joip.io` without adding your own `X-Forwarded-For` or similar headers. Contact support with the request ID if it continues.

## api\_account\_suspended

**403, not retryable.** The Joip account that owns this key is inactive or unavailable. Sign in to Joip to restore access; no key on the account works until it is active again.

## account\_not\_found

**404, not retryable.** The Joip account for this key no longer exists. Keys stop working when their account is deleted. Create a new account and key.

## credits\_not\_found

**404, not retryable.** The account has no credit balance yet. Sign in to Joip once in a browser to create it, then retry.

## invalid\_request

**400, not retryable.** The JSON body failed validation. `detail` names the first failing field and why, for example `media_urls[0] must be an https:// URL.`, and `param` names the top-level field. Fix that field using the operation's schema.

## invalid\_query

**400, not retryable.** A query parameter is unknown or has an invalid value, for example `limit=500`, `state=done` or `include=everything`. `param` names the parameter. Valid values are listed on [Jobs](https://docs.joip.io/api-reference/jobs.md) and [Pagination](https://docs.joip.io/api-reference/pagination-and-rate-limits.md).

## invalid\_path

**400, not retryable.** A path parameter is malformed, for example a `job_id` that isn't a UUID. Use the `id` exactly as Joip returned it.

## invalid\_cursor

**400, not retryable.** The cursor is malformed, altered, or belongs to another list. Pass `next_cursor` back unchanged to the same route, and never build or decode one.

## invalid\_idempotency\_key

**400, not retryable.** The `Idempotency-Key` header is missing or isn't 8 to 255 characters. Send one on every `POST`; a UUID works.

## media\_unavailable

**400, not retryable.** A media URL doesn't point to a publicly reachable HTTPS host. Private, internal, loopback and unresolvable hosts are refused before any credits are reserved. `param` is `media_urls`, or `items` for rewrites. Host the image on a public HTTPS server. A URL that passes this check but fails later, during processing, fails only that item at zero credits (see [item errors](#job-and-item-errors)).

## job\_not\_found

**404, not retryable.** No job with this ID exists for the account that owns the key. Jobs are account-scoped, so another account's job ID returns this too. Check you're using the key of the account that created the job.

## idempotency\_conflict

**409, not retryable.** This `Idempotency-Key` was already used with a different request body. To retry, send the original body unchanged. For genuinely new work, use a new key.

## idempotency\_in\_progress

**409, retryable.** A request with this `Idempotency-Key` is still being accepted. Wait a second and retry with the same key and body; you receive the original job with `Idempotent-Replayed: true`.

## insufficient\_credits

**402, not retryable.** The account doesn't have enough available credits for this request, and nothing was reserved. [Buy credits](https://joip.com/credits), wait for running jobs to release their reservations, or submit fewer items. `GET /v1/credits` shows what is available.

## rate\_limit\_exceeded

**429, retryable.** The key sent more than 120 requests this minute, or your address sent more than 30 requests with a missing or invalid key. Wait `Retry-After` seconds. Watch `X-RateLimit-Remaining` to slow down before you reach the limit, and fix the key if this followed `invalid_api_key` errors.

## admission\_unavailable

**429, retryable.** The account reached its hourly allowance: 10 jobs from this UTC hour still in progress, or 1,000 media items submitted this hour. Nothing was reserved. Wait `Retry-After` seconds (up to 30 while jobs finish, or until the next hour when the item allowance is used) and retry with the same `Idempotency-Key`.

## pricing\_unavailable

**503, retryable.** Joip couldn't load the current server-authoritative caption price, so nothing was reserved. Retry shortly with the same `Idempotency-Key`. Never fall back to a cached price.

## queue\_unavailable

**503, retryable.** The job was recorded but couldn't be queued. Wait `Retry-After` seconds and retry the same body with the same `Idempotency-Key`; Joip resumes the recorded job instead of creating a second one.

## api\_ingress\_unavailable

**503, retryable.** The API service couldn't verify the request came through Joip's edge. This is on Joip's side. Retry with backoff; your key is fine and doesn't need rotating.

## api\_not\_configured

**503, retryable.** Joip's edge isn't configured to reach the API service. This is on Joip's side. Retry with backoff and check [status](https://api.joip.io/status).

## invalid\_acceptance\_contract

**502, retryable.** The API service returned an incomplete job acceptance. Retry with the same `Idempotency-Key` and body to receive the job.

## invalid\_upstream\_response

**502, retryable.** Joip's edge received a response from the API service it couldn't pass on. Retry with backoff, reusing the `Idempotency-Key` for job creation.

## internal\_error

**500, retryable.** Joip couldn't complete the request. Retry with backoff, reusing the `Idempotency-Key` for job creation. If it continues, send support the `request_id`.

## Job and item errors

These codes aren't HTTP errors. A request that reads a job succeeds with `200`, and a failed item carries a sanitized `error` with only `code` and `message`. A job can carry the same `error` shape. Provider payloads and credentials are never exposed. Failed items cost nothing: only completed items settle credits.

| Code | What happened | What to do |
| - | - | - |
| `media_unavailable` | Joip couldn't load the source media safely while processing it. | Check the URL is public, returns an image, and stays up; submit it as new work with a new key. |
| `unsupported_media` | The source media couldn't be loaded safely as an image. | Check the URL returns the image itself over public HTTPS, not a web page or a redirect to a private host. |
| `deadline_exhausted` | The item ran out of time before Joip could finish it. | Submit it again as new work with a new key. |
| `caption_generation_failed` | Caption generation failed for this item. | Submit it again as new work, or try another image. |
| `item_failed` | This item failed while others in the job completed. | Read the other items' captions; resubmit only the failed media. |
| `provider_submission_unknown` | Joip couldn't confirm the caption provider's outcome. The job is held as `needs_review`. | Stop polling, keep the job ID, and don't resubmit. Joip reconciles it. |
| `job_held_for_review` | The item wasn't sent because its job is held for review. | Keep the job ID and don't resubmit; contact [support](https://joip.com/support/contact) with it. |
| `operation_failed` | The item failed for a reason Joip doesn't expose. | Resubmit as new work; send support the job ID if it repeats. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.