Error body shapes
Authentication failure
Authentication failure
Returned by the authentication layer before the request reaches any endpoint logic. This shape always means the API key is missing, malformed, or invalid.Paired with HTTP
string
A short human-readable description of the authentication problem.
401.Endpoint error
Endpoint error
Returned when an operation fails for a business-logic reason — for example, when you reference an agent or conversation that does not exist.Paired with HTTP
string
A short human-readable description of why the operation failed.
404 (not found), 403 (forbidden), or 400 (bad request) depending on the nature of the failure.Refused save (validation issues)
Refused save (validation issues)
Returned when agent creation or update fails because the request body contains invalid configuration. See Agent Configuration and Branching for the fields that can trigger this response.Paired with HTTP
array
A list of all validation failures found in the request. The save is atomic — fix every issue and resubmit.
400.Refused answer edit (validation failure on PATCH)
Refused answer edit (validation failure on PATCH)
Returned when Paired with HTTP
PATCH /api/v1/agents/{agent_id}/conversations/{conversation_id}/form_data fails because one or more submitted values do not pass the question’s validation rules. See Validation for the full rule reference.string
Always
"Validation failed" for this shape.object
A map of field names to failure details. Nothing is saved if this object is non-empty — fix all fields and resubmit.
400.