API: Streaming (SSE)
Purpose: real-time server-sent event feeds for activities, receipts, and gateway live graph.Endpoints
GET /api/stream/activitiesGET /api/stream/receipts/:idGET /api/stream/openclaw
Connection Limits
Streaming endpoints use shared limiter logic with max50 concurrent clients per endpoint bucket.
Activities Stream
type, entityType, entityId, and sinceId.
Receipt Stream
stdout, stderr, and finalized.
OpenClaw Graph Stream
connected, snapshot, and delta with optional query filtering by agentId, sessionKey, and channel.
Error patterns
429when connection limit is exceeded- stream closes when source data is missing/finalized/aborted depending on endpoint