Subscribe to events (SSE)
GET /api/v1/events
GET
/api/v1/events
Opens a Server-Sent Events stream for real-time updates. Optionally filter by projectId and agentType to receive events for a single project. Event types: worktree_state, project_state, worktree_list_changed, budget_exceeded, budget_container_stopped, heartbeat, server_shutdown, runtime_status, agent_status.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” projectId
string
Filter events to this project ID
agentType
string
Filter events to this agent type
Responses
Section titled “ Responses ”SSE event stream
string
Internal Server Error
object
code
string
error
string
Event streaming not configured
object
code
string
error
string