Follow a generation, from wherever the client left off.
GET
/api/runs/{id}/events
const url = 'http://localhost:5173/api/runs/example/events';const options = { method: 'GET', headers: {cookie: 'authjs.session-token=<authjs.session-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 http://localhost:5173/api/runs/example/events \ --cookie authjs.session-token=<authjs.session-token>Server-sent events. Every event carries its sequence number, so a client that reconnects sends Last-Event-ID and receives exactly what it missed; from=0 replays the whole log, which is what a freshly loaded page wants. A finished run replays its log and closes.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”from
integer
Responses
Section titled “Responses”A text/event-stream of run events.

