Skip to main content

Workflow Definitions

Endpoints for managing workflow definitions.

Create Workflow

Request Body

Workflow Runs

Endpoints for executing workflows and tracking their progress.

Start Run

Request Body

Streaming Updates (SSE)

The /api/v1/workflow-runs/:id/stream endpoint provides a server-sent events (SSE) stream of run updates. Events:
  • run_started: Emitted when the run begins
  • step_started: Emitted when a step begins execution
  • step_completed: Emitted when a step finishes
  • run_completed: Emitted when the entire workflow finishes
  • run_failed: Emitted if an error occurs

Human Approvals

Endpoints for managing human_approval steps in workflows.

Approve Request

Request Body
Set X-Approver-ID header to identify the approver. Defaults to api-user if not provided.