Stream real-time insights via Server-Sent Events (SSE). On connect, recent insights are replayed as ‘insight.replay’ events (up to 20). New insights arrive as ‘insight.batch.created’ events. Keepalive comments are sent every 30 seconds.
insight.stream scope on your API key.: connected workspace_id=... token_id=...insight.replay events (up to 20): keepalive) are sent every 30 secondsinsight.batch.created events in real-time| Event | Description |
|---|---|
insight.batch.created | Real-time: new insights just discovered |
insight.replay | Historical: recent insights sent on connection |
API key for authentication (format: "Bearer YOUR_API_KEY")
SSE event stream of insights
Server-Sent Events stream. Events: 'insight.batch.created' (real-time new insights), 'insight.replay' (historical replay on connect). Each event's data field contains a JSON object with workspace, insights array, insight_count, and emitted_at.