Skip to main content
Every error response from the ai-cmo.dev v1 API follows a consistent JSON envelope. This page lists every error code, its HTTP status, meaning, and retry strategy for API consumers.
details appears only on zod validation failures (HTTP 400 invalid_request), where each issue in the validation errors maps to one details entry. requestId is an 8-character hex string that correlates server-side logs to the response. Include it when reporting issues.

Error codes

Retry strategy

402 insufficient_credits body

409 stalestate body

Validation order

A handful of write endpoints validate the request body before checking credentials, so a malformed body can return 400 invalid_request even when no key was sent. Authentication is still required — a well-formed request without credentials gets 401 — but do not rely on the 400/401 order when probing.