Developers
Developers/Errors
REFERENCE / API V1

Errors

Status codes, error identifiers and recovery steps.

Stable identifiers, actionable responses

Application errors use a JSON detail object with an error identifier and relevant limits or context. Payload/schema validation can instead return HTTP 422 with a detail array of field errors. Use the HTTP status for broad handling and the identifier for precise recovery.

Response402 Payment Requiredcontent-type: application/json
JSON
{
  "detail": {
    "error": "insufficient_credits",
    "available": 82,
    "reserved": 7
  }
}

Common errors

StatusIdentifierWhat to do
400invalid_requestThe request could not be accepted. Inspect detail and correct the payload.
401missing_authenticationSend X-API-Key or an API-key Bearer token.
401invalid_api_keyCreate a new key or confirm that the workspace key was not revoked.
402insufficient_creditsAdd credits or reduce the requested targets and result limit.
404job_not_found / batch_not_foundConfirm that the ID belongs to the authenticated workspace.
409idempotency_key_conflictDo not reuse one idempotency key for a different payload.
409results_not_readyPoll until the job or batch reaches a terminal state before exporting.
422unsupported_operationRead GET /v1/platforms and select an enabled platform operation.
422duplicate_batch_targetRemove duplicate targets from the batch.
429rate_limit_exceededWait for Retry-After, then retry; preserve the idempotency key if one was supplied.
429concurrent_job_limit_exceededWait for active work to finish before creating more jobs.
503operation_unavailableCheck available in GET /v1/platforms. Choose another operation; repeating an unavailable operation will not help.
503rate_limiter_unavailableRetry with backoff; preserve the idempotency key if one was supplied.
404plan_not_found / template_not_foundConfirm the plan or template ID; list templates with GET /v1/assistant/templates.
409plan_not_approvableThe plan was already approved, cancelled or needs clarification. Read its status before retrying.
422invalid_template_inputFix the field named in the error, for example a two-letter country code or a full https:// link.
422assistant_declinedRephrase the question around public social media data Caelario can collect.
429assistant_daily_limitThe workspace reached today's question limit. Templates still work; questions reset over 24 hours.
429assistant_busyRetry shortly with backoff.

Retry policy

Retry connection failures, 429, and temporary 503 responses with exponential backoff and jitter. For write requests, add an optional idempotency key and preserve the exact payload and key across attempts. Do not retry validation errors until the request changes. Do not continuously retry operation_unavailable; wait for the catalog to mark it available or choose another operation.