Skip to creators
Docs menu

Errors

Every Besday API error code with its HTTP status and meaning, the JSON error envelope, and which errors are safe to retry.

Updated · API version 2026-12-03

Errors use conventional HTTP status codes and one JSON shape. Branch on error.type for behaviour (retry or not) and on error.code for the exact reason; show error.message to people.

The error object#

Every error answer has this shape, with the matching HTTP status.

FieldDescription
error.type
string
Broad class: decides whether to retry.
error.code
string
Specific reason. Stable; see Errors.
error.message
string
A sentence for a person.
error.param
string
The parameter at fault, when there is one.
error.request_id
string
Quote it to support. Also in the X-Request-Id header.
Example error
{
  "error": {
    "type": "invalid_request_error",
    "code": "parameter_invalid",
    "message": "Choose a supported video length.",
    "param": "duration_seconds",
    "request_id": "2f0c3e5a-7c1d-4a8e-9b6f-0d2e4c6a8b10"
  }
}

Error types#

TypeStatusWhat to do
authentication_error401The API key is missing, malformed, revoked, or no longer allowed to act for the brand.
permission_error403The key is valid but may not do this (a read-only key writing, an unverified email paying, a spending limit).
not_found_error404The object does not exist or does not belong to your brand.
invalid_request_error400The request is malformed, a parameter is invalid, or the object is in a state that does not allow the action (400, 409, 413 or 422).
payment_error402The brand does not have enough credits for this order.
rate_limit_error429Too many requests with this key. Wait for the number of seconds in Retry-After.
api_error500Something went wrong on Besday’s side. Safe to retry with the same Idempotency-Key.

Error codes#

CodeStatusMeaning
api_key_missing401No Authorization: Bearer header was sent.
api_key_invalid401The key is malformed, unknown or revoked, or its team member, brand or account is no longer active.
insufficient_scope403A read key tried to change something. Create a read_write key.
email_unverified403The key’s team member has not verified their email address, which Besday requires before paying.
member_limit403Paying would pass the monthly spending limit the brand owner set for this team member.
credits_blocked423Spending is paused on this brand’s credits. Contact Besday support.
not_found404No such object for your brand.
route_not_found404No such endpoint. Check the method and path against the reference.
invalid_json400The body is not valid JSON.
parameter_invalid422A parameter is missing or invalid; param names it.
order_state409The order is not in a status that allows this action.
already_paid409The order is already paid.
creator_unavailable409The creator is not taking new orders right now.
download_locked403Originals of a real creator’s order unlock when you approve the delivery; the watermarked preview is available before.
idempotency_key_reused409This Idempotency-Key was already used with a different request.
idempotency_in_progress409A request with this Idempotency-Key is still being processed. Retry in a second.
limit_reached409The brand already has the most objects of this kind allowed (for example 5 webhook endpoints).
url_not_allowed422A webhook URL must be https on port 443 and resolve only to public internet addresses.
insufficient_credits402The order costs more credits than the brand has. The error carries the shortfall and a link to buy credits.
rate_limited429Too many requests. Retry after the seconds in the Retry-After header.
internal_error500An unexpected error. It was logged with the request id.

Which errors to retry#

  • Retry 429 after Retry-After seconds, and 500/503 with exponential backoff, always with the same Idempotency-Key.
  • Do not retry 400, 401, 403, 404, 409 or 422 unchanged: fix the request first.
  • 402 insufficient_credits: buy credits (the error has buy_credits_url and shortfall_credits), then pay again.

Validation errors#

A 422 names the first bad parameter in param and lists every problem in errors:

{
  "error": {
    "type": "invalid_request_error",
    "code": "parameter_invalid",
    "message": "Choose a supported video length.",
    "param": "duration_seconds",
    "errors": [
      {
        "param": "duration_seconds",
        "message": "Choose a supported video length."
      },
      {
        "param": "product_url",
        "message": "Enter a valid link, like https://yourbrand.com/product"
      }
    ],
    "request_id": "2f0c3e5a-7c1d-4a8e-9b6f-0d2e4c6a8b10"
  }
}

This page as Markdown: /docs/api/errors.md · All docs for LLMs: llms-full.txt · OpenAPI 3.1