Stream Events
Opens a Server-Sent Events (SSE) stream for real-time events from a replica. The connection remains open and events are pushed as they occur.
Each event is delivered as an SSE message in the format data: <JSON>\n\n. A heartbeat ping is sent every 15 seconds to keep the connection alive. Clients should reconnect automatically on disconnect.
All events share a common envelope structure with id (unique event ID), ts (ISO 8601 timestamp), type (event type discriminator), and payload (type-specific data). See the EngineEvent schema for all possible event types.
Authorizations
API key authentication. Obtain your API key from the Replicas dashboard under Settings > API Keys.
Path Parameters
The unique identifier of the replica
Response
SSE event stream opened successfully. Each line is a JSON-encoded EngineEvent.
- engine.ready
- engine.status.changed
- repo.discovered
- repo.status.changed
- chat.created
- chat.updated
- chat.deleted
- chat.turn.accepted
- chat.turn.started
- chat.turn.delta
- chat.turn.completed
- chat.interrupted
- hooks.started
- hooks.progress
- hooks.completed
- hooks.failed
- hooks.status
- preview.changed
- error
Engine initialization complete.