Streaming
Subscribe to GET /v1/runs/{runId}/sse to observe behavior in real time.
Event Format
id: <sequential_int>
event: <event_name>
data: <json>Special heartbeat:
event: keepalive
data: nullA keepalive is emitted every 20 s while at least one client is connected.
Data Events
Event
Description
start
The run begins execution.
step
A step inside the run finishes.
authentication
The run needs user authentication (status transitions to AUTH_REQUIRED) or reports its outcome.
run_approval
The run requires manual approval before proceeding (Emitted if Create Run request has approval strategy set).
run_action
Records the approval decision made by the user (approved or denied).
status
Any other status change (e.g. QUEUED, PAUSED).
end
The run finishes (SUCCESS, FAILED, or CANCELED).
Every data event contains:
Payload reference
start
startstep
stepauthentication
authenticationrun_approval
run_approvalrun_action
run_actionstatus (queued / paused)
status (queued / paused)end
endLast updated