SSE stream for a project chat conversation — streamprogramagentevents
const url = 'https://example.com/api/program-agent/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/events?afterSequence=0&realtime=1';const options = {method: 'GET', headers: {cookie: 'sb-access-token=<sb-access-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/api/program-agent/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/events?afterSequence=0&realtime=1' \ --cookie sb-access-token=<sb-access-token>Session-authenticated observation stream for the project’s single shared chat conversation; the session is the project conversation, not one program’s. Emits hello/turn/change_set/delivery_recovery/status/error/ping events and resumes stored turns after the supplied sequence on reconnect (zero by default). A scope conversation also emits scope ({ rev }) whenever the project’s scope map revision moves, so the portal refetches the map; roadmap conversations never emit it. Proposal notifications carry the exact ID, revision and status; status uses running/idle/terminated derived from durable processing state and reports uncertain delivery and processor errors. Does not execute provider or tool calls; durable processing continues without viewers. Current project access is rechecked on every transcript read.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Query Parameters
Section titled “Query Parameters ”Last transcript sequence already received for this session. Only later turns are streamed.
Send 1 when the client’s realtime push is connected. A hint only: the poll then skips the turn-row read except once every 10 seconds, and every other signal is unchanged. Omit it to get every poll as before.
Responses
Section titled “ Responses ”Text/event-stream
Invalid request
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)
Forbidden
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)
Not found
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)