2026-04-04
Added: errors field on agent runs and webhooks
Agent run responses and webhook payloads now include an errors field that surfaces error messages from failed tasks, grouped by the template node that produced them.
Run-level (GET /agent_run/{run_id} and RUN_FINISHED webhook):
original_node_id (template node) so you can map failures back to specific nodes in your agent.
Node-level (GET /agent_run/{run_id}/nodes and RUN_PROGRESS webhook updated_nodes[]):
errors is a flat string array since the node context is already provided by the parent object.
Affected endpoints:
| Surface | Field | Type |
|---|---|---|
GET /agent_run/{run_id} | errors | array of { original_node_id, messages[] } |
GET /agent_run/{run_id}/nodes | nodes[].errors | string[] |
RUN_FINISHED webhook | errors | array of { original_node_id, messages[] } |
RUN_PROGRESS webhook | updated_nodes[].errors | string[] |
status_message field on runs and nodes continues to work as before and is unaffected by this change.