http
POST /runs/{run_id}/eventsAppend run events.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
run_id | path | Yes | |
Idempotency-Key | header | Stable retry key required for Task and Workflow appends; optional for Agent appends. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
expected_previous_event_id | integer,null | ||
expected_previous_external_event_sequence | integer,null | ||
external_sequence_scope | string | ||
events | array | Yes | |
tool_call_starts | array | ||
runtime_observations | object | ||
recovery_checkpoint | object |
Responses
| Status | Description |
|---|---|
| 200 | Persisted event cursor |
| 400 | Bad request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not found |
| 409 | Conflict |
| 413 | Payload too large |
| 429 | Rate limit exceeded |
| 503 | Service unavailable |