Rensei docs

Subscribe to the authenticated org's live session-event SSE stream.

Subscribe to the authenticated org's live session-event SSE stream. - Rensei REST API operation reference.

GET
/api/sessions/stream

Query Parameters

orgId?string

Explicit organization id; requires membership.

projectId?string

Restrict events to an accessible project id.

project?string

Restrict events to an accessible project slug in the selected org.

Response Body

Live SSE of the org's session lifecycle events. Emits heartbeat ({timestamp}) every 15s, reconnect before the lambda lifetime bound (self-terminates cleanly so EventSource reconnects), and one event per session lifecycle change. Layer-6 provider hook events are filtered out. Best-effort live feed — no replay or ordering contract.

response?stringtext/event-stream

SSE-framed text; event names include heartbeat, reconnect, and session lifecycle types.

Example Request
curl -X GET 'https://app.rensei.ai/api/sessions/stream'
Example Response
"string"