Skip to main content
Errors from the Data API carry a stable code beside the legacy detail member. Branch on code in your own handling, and fall back to the HTTP status when code is absent. The set of codes is open, so treat an unknown value as its HTTP status class. The type member of every error body is a URL of the form https://www.vaquill.ai/docs/errors/{code}. Opening that URL in a browser lands on this page, at the section for that code. Start at Errors and rate limits for the status table, the detail and errors shapes and rate limiting. This page is the per-code reference.

Body fields

Example response

Every error body has this shape. The detail text is illustrative and can differ by endpoint. A few codes add members of their own, which their sections name.

All codes

The Python SDK (vaquill) and the TypeScript SDK use the same class names. A class marked “by status” is the class the SDKs pick from the HTTP status when a code has none of its own (see How the SDKs expose them).

Retrying

A 429 or 503 that sends a Retry-After header also carries retryAfterSeconds in the error body. Both are whole seconds, and for a rate limit they count down to the end of the window that refused you. Wait that long, then retry the same request. If there is no hint, retry with exponential backoff. daily_cap_exceeded is also a 429, but retrying cannot succeed until the cap resets. The SDKs retry every code marked Retryable Yes and never retry insufficient_credits or daily_cap_exceeded. See the Python SDK and the TypeScript SDK pages for client setup.

Codes by kind

Each section below is named for its code, so the type URL of an error body opens straight to it. Every code is exposed in both SDKs with code, retryable, the request id and the retry hint, as the SDK section further down describes.

Authentication and permission

Status, retry rule and SDK class are in the table above, so each entry here says what the code means and what is specific to it.

Authentication and permission

Retrying a 401 or 403 unchanged cannot succeed: change the key, plan, scope or jurisdiction first. See Authentication for the header format and key rotation.

authentication_required

The request carried no credential. Send your key in the Authorization: Bearer vq_key_... header.

invalid_api_key

The key is malformed, unknown or revoked. This is also the default code for any 401 that the API could not classify more precisely. Check that the key starts with vq_key_ and was copied whole. Create a new key in the developer dashboard if the old one was revoked.

api_key_expired

The key is past its expiry date. Create a new key and replace the expired one.

permission_denied

The key is valid, but your plan, the key’s scope or the requested jurisdiction does not allow this call. For example, webhook delivery on a watch requires the Business plan. Read detail to see which of plan, scope or jurisdiction applies, then use a different channel or jurisdiction, or upgrade the plan.

insufficient_scope

The key is valid but lacks the scope this route needs. detail names the scope.

Credits and limits

insufficient_credits

Your credit balance is too low to pay for this call. Top up your credits, then send the request again. GET /credits/balance is free and shows what you hold. Never retry before topping up.

rate_limited

You exceeded the per-key rate window. Wait as described under Retrying, then retry.

quota_exceeded

A standing account limit, for example the watch cap. Retrying cannot help: free one up, for example by deleting a watch, or raise the limit by upgrading.

daily_cap_exceeded

The key reached its per-key daily cap. The status is 429, but unlike rate_limited a short wait does not help. Retry only after the daily cap resets.

Request validation

Fix the request and send it again.

validation_error

The request body or parameters failed schema validation. This is the default code for a 4xx that the API could not classify more precisely. The body also carries the legacy errors array, a field-level list. Each entry has loc (where), msg (why) and type. See Errors and rate limits for the errors shape.

invalid_query

A Boolean query or a filter was refused before any charge. Read detail for the reason, such as a malformed expression. See Boolean search for the grammar and its error messages. Rejected requests are not charged.

invalid_citation_input

The request itself is malformed. This is not the same as a citation that parsed but did not resolve. Send the citation as a string in the field the endpoint documents.

bad_request

The request parsed but the API refused it. detail names the specific problem, so read it rather than retrying. See 400 versus 422.

method_not_allowed

The path exists but not for this HTTP method. The Allow header lists the right ones.

payload_too_large

The request body is over the limit.

unsupported_media_type

Send Content-Type: application/json.

Not found

section_not_found

No section matches the identifier you sent. The body keeps the legacy members reason and didYouMean beside the standard ones, and they carry the values the lookup produced. Read reason to see why the lookup failed and try the candidates in didYouMean when present. Use search or the hierarchy browse to find the correct identifier.

resource_not_found

A watch, board, delivery or change with that id does not exist for your account. Check the id and that it belongs to your key’s account. List the resource first to get valid ids.

Idempotency and conflict

idempotency_key_reused

You sent an Idempotency-Key that was already used with a different request. Use a fresh key for each distinct request. Reuse a key only when you resend the identical request.

idempotency_in_progress

The original request with this Idempotency-Key is still running. Wait briefly and resend the same request with the same key.

idempotency_replay_unavailable

The original request completed, but its response was too large to replay. The call was not charged again. Check your balance with GET /credits/balance before deciding to repeat the call. If you need the data again, send a new request with a new key.

conflict

The request conflicts with the current state of a resource and no more specific code applies. For example, you already hold the watch you tried to create. Read detail for the conflicting state and fetch the existing resource instead of creating it again.

Server and upstream

All three are refunded. Retry with exponential backoff, and honour Retry-After when it is present, as described under Retrying.

upstream_timeout

A service the API depends on did not answer in time.

service_unavailable

A dependency of the API is down.

internal_error

The API failed in a way it did not anticipate. If it persists, contact support and include the requestId.

How the SDKs expose them

Both SDKs read the same body and map it to an exception class. They pick the class from code first and from the HTTP status second, so an unknown code still raises the right status class. code and retryable are None in Python and null in TypeScript when the server did not send them. The class for each code is in the All codes table. A code without a class of its own maps by status: 401 to AuthenticationError, 403 to PermissionDeniedError, 404 to NotFoundError, 409 to ConflictError, 422 to UnprocessableEntityError, 429 to RateLimitError, and 5xx to InternalServerError. The three idempotency classes share the base class IdempotencyConflictError.
Last modified on November 7, 2026