decision control
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

CodeMeaning
VALIDATION_FAILEDThe payload does not match the schema. details.fieldErrors names the fields.
UNAUTHORIZEDNo session, or the session has expired.
FORBIDDENThe session lacks the permission this endpoint requires.
NOT_A_MEMBERThe session is valid but does not belong to the active project.
INVALID_CREDENTIALSThe email/password pair is wrong.
EMAIL_TAKENThe email is already in use.
VERSION_NOT_FOUNDThe pinned version does not exist or is archived.
UPSTREAM_FAILEDAn outbound API call failed and the flow did not handle it.
RATE_LIMITEDThe per-key or per-IP budget is exhausted; back off and retry.
UNAVAILABLEA dependency (the database) is unreachable; retry after Retry-After (503).
APPROVAL_REQUIREDPublishing requires an approval; the request was created instead.
TESTS_FAILEDOne or more test cases failed at publish time. details.report lists them.
TWO_FACTOR_REQUIREDWorkspace requires 2FA; complete the challenge before continuing.
SSO_REQUIREDWorkspace requires SSO; password sign-in is refused for this address.
REGISTRATION_CLOSEDSign-up is closed, invite-only or limited to other email domains (403).
CAPTCHA_FAILEDThe CAPTCHA token was missing, expired or rejected on registration (400).
EMAIL_NOT_VERIFIEDThe address is not verified yet; verify it before signing in (403).
ACCOUNT_SUSPENDEDThe account is suspended by a platform admin (403).
CONFLICTThe change collides with the current state, e.g. a stale draft revision (409).
QUOTA_EXCEEDEDA platform usage limit is reached for the window, or the subject is paused (429).
OVERLOADEDThe process is at its concurrency ceiling; retry after Retry-After (503).
AI_DISABLEDThe AI assistant is turned off for this deployment (503).
EXECUTION_FAILEDThe decision failed while running (500).
FORM_CLOSEDA public form is past its expiry or submission cap; answers like an unpublished one (404).
*_NOT_FOUNDThe addressed resource does not exist (404), e.g. DECISION_NOT_FOUND, TABLE_NOT_FOUND, WEBHOOK_NOT_FOUND, CASE_NOT_FOUND.
INTERNAL_ERRORAn 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.

On this page