Error Models¶
The validation error shape returned on 422 responses across the API.
HTTPValidationError¶
The top-level 422 body.
| Field | Type | Description |
|---|---|---|
detail |
ValidationError[] | string |
List of validation errors when the request body fails validation. Some checks made after validation (for example an unknown tool_config_id or a session limit on the filter endpoints) return a single string instead. |
ValidationError¶
A single validation failure.
| Field | Type | Description |
|---|---|---|
loc |
(string \| integer)[] |
Location of the error (e.g. ["body", "content"]). |
msg |
string |
Human-readable error message, e.g. "Field required". |
type |
string |
Error type identifier, e.g. "missing" or "value_error". |
input |
any | The input that failed validation. |
ctx |
object |
Extra context for some error types. Optional. |