Skip to content

Follow a generation, from wherever the client left off.

GET
/api/runs/{id}/events
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.

id
required
string
from
integer

A text/event-stream of run events.