Skip to content

Stream workflow state (SSE)

GET
/v1/durable/workflows/{workflow_id}/sse
curl --request GET \
--url https://app.everruns.com/api/v1/durable/workflows/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/sse

Establishes a Server-Sent Events (SSE) connection for real-time workflow monitoring.

Connection Lifecycle Events

  • connected: Sent immediately when the stream is established.
  • snapshot: Sent when workflow state or events change.
  • disconnecting: Sent before the server closes the connection for graceful cycling. Data: {"reason":"connection_cycle","retry_ms":1000}

Connection Cycling

Connections are automatically cycled every 10 minutes. Before closing, the server sends a disconnecting event so clients can reconnect seamlessly.

Retry Hints

Each SSE event includes a retry: field (in milliseconds) that hints reconnection timing.

workflow_id
required
string format: uuid

Workflow ID

SSE event stream with ‘connected’, ‘snapshot’, and ‘disconnecting’ events

Media type text/event-stream

Workflow not found

Durable store not available