Reference
Errors
Stable error codes every endpoint answers.
Every error from the API has the same shape:
{ "error": { "code": "...", "message": "...", "details": {/* optional */} } }The code is stable and machine-readable. The message is human-readable and may change; do not
parse it. details is optional and contains structured information about the specific failure.
Stable codes
| Code | Meaning |
|---|---|
VALIDATION_FAILED | The payload does not match the schema. details.fieldErrors names the fields. |
UNAUTHORIZED | No session, or the session has expired. |
FORBIDDEN | The session lacks the permission this endpoint requires. |
NOT_A_MEMBER | The session is valid but does not belong to the active project. |
INVALID_CREDENTIALS | The email/password pair is wrong. |
EMAIL_TAKEN | The email is already in use. |
VERSION_NOT_FOUND | The pinned version does not exist or is archived. |
UPSTREAM_FAILED | An outbound API call failed and the flow did not handle it. |
RATE_LIMITED | The per-key or per-IP budget is exhausted; back off and retry. |
UNAVAILABLE | A dependency (the database) is unreachable; retry after Retry-After (503). |
APPROVAL_REQUIRED | Publishing requires an approval; the request was created instead. |
TESTS_FAILED | One or more test cases failed at publish time. details.report lists them. |
TWO_FACTOR_REQUIRED | Workspace requires 2FA; complete the challenge before continuing. |
SSO_REQUIRED | Workspace requires SSO; password sign-in is refused for this address. |
REGISTRATION_CLOSED | Sign-up is closed, invite-only or limited to other email domains (403). |
CAPTCHA_FAILED | The CAPTCHA token was missing, expired or rejected on registration (400). |
EMAIL_NOT_VERIFIED | The address is not verified yet; verify it before signing in (403). |
ACCOUNT_SUSPENDED | The account is suspended by a platform admin (403). |
CONFLICT | The change collides with the current state, e.g. a stale draft revision (409). |
QUOTA_EXCEEDED | A platform usage limit is reached for the window, or the subject is paused (429). |
OVERLOADED | The process is at its concurrency ceiling; retry after Retry-After (503). |
AI_DISABLED | The AI assistant is turned off for this deployment (503). |
EXECUTION_FAILED | The decision failed while running (500). |
FORM_CLOSED | A public form is past its expiry or submission cap; answers like an unpublished one (404). |
*_NOT_FOUND | The addressed resource does not exist (404), e.g. DECISION_NOT_FOUND, TABLE_NOT_FOUND, WEBHOOK_NOT_FOUND, CASE_NOT_FOUND. |
INTERNAL_ERROR | An unexpected server error (500). |
A client should key its UX on the code, not the message. An expired session answers
UNAUTHORIZED; a project you are not a member of answers NOT_A_MEMBER; a payload that does not
match its schema answers VALIDATION_FAILED with details.fieldErrors listing every offending
field.