Error Types
HTTP Errors
API failures raiserequests.exceptions.HTTPError with the status code and server error message.
| Status | Meaning |
|---|---|
| 400 | Bad request — invalid parameters or malformed data |
| 401 | Unauthorized — invalid or missing API key |
| 403 | Forbidden — insufficient permissions |
| 404 | Not found — collection, run, or rubric doesn’t exist |
| 413 | Payload too large — reduce batch size |
| 429 | Rate limited — slow down requests |
| 500 | Server error — retry or contact support |
Validation Errors
Invalid inputs raiseValueError:
- Empty required fields (
dql,agent_run_ids, etc.) - Invalid parameter values (
limit <= 0, unsupportedpermissionvalues) - Missing API key at initialization
Schema Validation Errors
Invalid JSON schemas raisejsonschema.ValidationError:
Job Failures
When usingadd_agent_runs(wait=True), failed background jobs raise RuntimeError:
Retry Behavior
The SDK automatically retries on server errors (5xx) for agent run uploads (add_agent_runs),
with exponential backoff (up to 3 retries by default). Client errors (4xx) are not retried.
Other methods do not retry automatically.

