Skip to content
Navigation

streamSession

GET
/api/v1/sessions/{sessionId}/stream

WebSocket. The server sends every event after after as a JSON text message (a SessionEvent), then live events as they happen. After a reconnect, pass the last seq received to continue without gaps. {"type":"status","running":bool} messages report whether a turn runs; {"type":"presence","viewers":[{id,name,avatarUrl,role}]} lists who is watching.

Authorization

  • session
    optional
    API key in cookie
  • token
    optional
    HTTP Bearer

    Authorization: Bearer <token>

Path parameters

  • sessionId
    string
    required

Query parameters

  • after
    optional
    integer
    format: int64

Returns

101

Switching to WebSocket.

404

Error.
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close