Skip to main content
GET
Subscribe to Workflow Updates

Overview

Subscribe to real-time updates for a workflow execution using Server-Sent Events (SSE). This provides live progress updates, status changes, and output information as the workflow executes.
This endpoint uses Server-Sent Events (SSE) for real-time updates. The connection remains open until the workflow reaches a terminal state or the maximum update limit is reached.

Path Parameters

string
required
The unique identifier (UUID) of the workflow to monitor.

Response

This endpoint streams events in Server-Sent Events format. Each event contains a JSON payload with workflow status information.

Event Data Format

string
Current status of the workflow.Possible values: accepted, uploaded, queued, running, completed, cancelled, invalid, failed
object
ComfyUI prompt information (structure varies based on workflow).
integer
Current position in the execution queue (null if not queued).
array
Array of output media objects (populated when status is completed).
string
Output file identifier.
string
Workflow UUID.
string
Signed URL to the output file.
object
Error information (only present if status is failed).
string
The ComfyUI node that caused the failure.
string
Type of exception.
string
Detailed error message.
string
ISO 8601 timestamp when execution started.
string
ISO 8601 timestamp when execution completed.

Example Event Stream

Connection Behavior

  • Update Interval: ~2 seconds between updates
  • Maximum Updates: 120 updates (~4 minutes)
  • Auto-Close: Connection automatically closes when workflow reaches a terminal state (completed, failed, cancelled)
  • Reconnection: Client should reconnect if connection drops unexpectedly

Error Responses

error
Unauthorized - invalid or missing authentication token.
error
Not Found - workflow with the specified ID does not exist or does not belong to your account.

Notes

  • Use this endpoint instead of polling for real-time updates
  • Connection closes automatically when workflow completes
  • Maximum connection time is ~4 minutes (120 updates × 2 seconds)
  • For long-running workflows, reconnect if max updates is reached
  • Outputs are included in the final event when status becomes completed
  • SSE is supported by most modern HTTP clients and browsers
  • Connection may be closed by network timeouts or proxies - implement reconnection logic
  • Each event is a complete status snapshot, not a delta

Example Client Code