Stream task events
Streams the task as server-sent events: a status event whenever it changes (with the open question while it waits), then a finished event with the whole task, and the stream ends. The stream also ends after a fixed time, so reconnect with Last-Event-ID to resume while the task is still running. If the task has already finished and that id is current, the answer is 204 with no body. A key limited to some workspaces may only use those.
Requires the agent:read permission.
Authorizations
An API key from Settings → API keys, sent as Authorization: Bearer jb_live_…
Headers
The id of the last event you received. The stream resumes after it.
200Path Parameters
The task id.
1 - 64^[A-Za-z0-9-]+$Response
A stream of server-sent events.
Events named status and finished. The data of each is the task as JSON; the id is <status>:<question id>.