Error shape
Errors return a compact JSON object:Human-readable error message. Agents should preserve this value with the route, HTTP status, entity ID, proposal ID, and user intent.
Status codes
400 Bad Request
400 Bad Request
Invalid email, invalid UUID, invalid constitution YAML, invalid state transition, missing spend fields, or unknown action/proposal kind.
401 Unauthorized
401 Unauthorized
404 Not Found
404 Not Found
Resource does not exist or is not visible to the authenticated account.
409 Conflict
409 Conflict
Version mismatch on a versioned entity update.
413 Payload Too Large
413 Payload Too Large
Constitution YAML exceeds the 64 KiB entity creation limit.
500 Internal Server Error
500 Internal Server Error
Internal server or persistence failure. Retry only when the operation is idempotent or after checking current state.
Agent retry policy
Preserve context
Keep the route, HTTP status, request intent, entity ID, proposal ID, and
error value.Re-read on conflict
For
409, fetch the latest entity, compare state, and re-evaluate the requested action.