ApiEmbed widget
Streams the agent's replies and liveness for the session over Server-Sent Events.
A long-lived SSE connection, fanned out cross-instance via the delivery change bus. Durable frames are `reply` (the agent's answer), `blocked`, and `failed` (the run errored); ephemeral liveness frames are `typing` (the run started) and `status` (a redacted "what I'm doing" line as a tool step begins). The client reconnects and replays missed durable rows via the messages endpoint's cursor — the ephemeral `typing`/`status` frames are not persisted and are not replayed.
curl -X GET "https://api.fruxon.com/v1/embed/sessions/string/stream"{
"tenantId": "00000000-0000-0000-0000-000000000000",
"sessionId": "string",
"kind": "REPLY",
"text": "string",
"target": "string",
"at": 0
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}