Server-Sent Events stream of a run's progress
const url = 'https://example.com/v1/runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/progress/stream';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/progress/stream \ --header 'Authorization: Bearer <token>'Each SSE frame is one RunProgressEvent: what happened, on which node, when — no payloads. Accepts an API token, or a public run token that names the run or one of its ancestors. Reconnect via Last-Event-Id; the server ends the stream after the run’s terminal event, or after 5 minutes.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”RunId — opaque branded string (a UUID).
Header Parameters
Section titled “Header Parameters”Resume marker (<runId>:<sequence>). Server replays events with sequence > lastSeen before entering live-poll.
Responses
Section titled “Responses”Text/event-stream. Each frame is one RunProgressEvent.
A run event without its payload: what happened, on which node, when.
object
Sent as the SSE id: line; echo it back in Last-Event-Id to resume.
Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}No run with that id that the token may read.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}