Skip to content

SSE stream for a project chat conversation

GET
/program-agent/{sessionId}/events
curl --request GET \
--url https://example.com/api/program-agent/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/events \
--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 replays stored turns on reconnect. 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.

sessionId
required
string format: uuid

Text/event-stream

Media type text/event-stream
string

Forbidden

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number

Not found

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number