qualia
Guides

Errors

Every error code and how to recover.

Every error response from /v1 follows the same envelope. This page lists the HTTP statuses, the stable error codes, and what to do about each.

The error envelope

{
  "error": {
    "code": "unauthorized",
    "message": "Invalid API key.",
    "requestId": "req_abc..."
  }
}

The requestId correlates the request with our logs. Include it when filing a support ticket.

HTTP codes

StatusCauseWhat to do
400Malformed request (e.g. invalid JSON).Check the body against the API reference.
401Missing or invalid API key.Send Authorization: Bearer <key>.
404Resource not found, or outside your organization.Verify the actor id; contact support if you expected access.
422Input failed schema validation.Inspect the response message; it names the offending field path.
500Bug on our side.Retry with exponential backoff; include requestId if persistent.

Error codes

Stable identifiers on error.code.

CodeHTTPMeaningRecovery
unauthorized401Auth failed or missing.Verify the Authorization: Bearer qk_live_... header.
bad_request400Body malformed (not JSON, etc.).Check the body and Content-Type header.
not_found404Resource does not exist or is outside your organization.Verify the actor id; contact support if you expected access.
unprocessable_entity422Input failed schema validation.Inspect message for the offending field path.
internal_server_error500Bug on our side.Retry with backoff; include requestId if persistent.

Idempotency is documented on the API reference and on the actors concept page.

Next