/ v1/ workflows/ {id}/ runs/ {run_ id}/ eventsList events for a run
Returns the full ordered event log for a specific run. Every action — step dispatched, step completed, human task created, run finished — produces an immutable event. Use this for debugging, auditing, and replaying what happened.
Events are ordered chronologically. The data field shape varies by type — see the WebSocket stream description for common event types.
Server
API key obtained from the AgentRuntime dashboard. Pass as Authorization: Bearer <key> on every request.
Stored only in this page session. It is not saved to local storage.
Runs from your browser. Non-GET requests require explicit confirmation and tokens are sent only when you click Send.
Enter a bearer token to enable testing.
curl -sS -X GET \
'https://api.agentruntime.io/v1/workflows/{id}/runs/{run_id}/events' \
-H 'Authorization: Bearer <token>'Responses
- 200Ordered event log.
application/json
eventsarray of
Schema
idstring
Example:
"evt_01hw3k9x4v8m"run_idstring
Example:
"run_01hw3k9x4v8m"typestring
Event type identifier.
Example:
"step_completed"dataSchema
timestampstring
Example:
"2026-04-10T11:00:01.312Z"
Example response
{ "events": [ { "id": "evt_001", "run_id": "run_01hw3k9x4v8m", "type": "step_started", "data": { "step_id": "classify" }, "timestamp": "2026-04-10T11:00:00.050Z" }, { "id": "evt_002", "run_id": "run_01hw3k9x4v8m", "type": "step_completed", "data": { "step_id": "classify", "result": { "category": "billing", "confidence": 0.94 }, "duration_ms": 312 }, "timestamp": "2026-04-10T11:00:00.362Z" }, { "id": "evt_003", "run_id": "run_01hw3k9x4v8m", "type": "step_started", "data": { "step_id": "draft-reply" }, "timestamp": "2026-04-10T11:00:00.380Z" }, { "id": "evt_004", "run_id": "run_01hw3k9x4v8m", "type": "step_completed", "data": { "step_id": "draft-reply", "result": "Hi! I can help you cancel. Go to Account Settings → Billing → Cancel Plan.", "duration_ms": 1840 }, "timestamp": "2026-04-10T11:00:02.220Z" }, { "id": "evt_005", "run_id": "run_01hw3k9x4v8m", "type": "human_task_created", "data": { "task_id": "task_01hw3k9x4v8m", "step_id": "human-review" }, "timestamp": "2026-04-10T11:00:02.240Z" } ] } - 401Missing or invalid Bearer token.
application/json
errorrequiredstring
Human-readable description of what went wrong.
Example:
"workflow not found"codestring
Machine-readable error code for programmatic handling.
Example:
"NOT_FOUND"
Example response
{ "error": "unauthorized", "code": "UNAUTHORIZED" } - 404The requested resource does not exist.
application/json
errorrequiredstring
Human-readable description of what went wrong.
Example:
"workflow not found"codestring
Machine-readable error code for programmatic handling.
Example:
"NOT_FOUND"
Example response
{ "error": "workflow not found", "code": "NOT_FOUND" }