Skip to main content
Every failure returns the same JSON envelope with the matching HTTP status:
  • code — a stable, machine-readable string. Branch on this, not the message.
  • message — a human-readable explanation; wording may change.
  • details — present for VALIDATION_ERROR only: a flattened map of field issues.
When a run is accepted but then fails internally, the envelope also carries a top-level runId so support can trace it.

Codes

Batch errors

Batch requests are validated as a whole (a malformed item, an empty items array, or more than 100 items returns 400). Once accepted, items run independently — a failure on one item does not fail the batch. Inspect each entry’s ok flag and error field in the results array instead of relying on the HTTP status. See Run an agent over a batch.