Documentation Index
Fetch the complete documentation index at: https://docs.cloudshipai.com/llms.txt
Use this file to discover all available pages before exploring further.
Workflow Definitions
Endpoints for managing workflow definitions.| Method | Endpoint | Description |
|---|---|---|
POST | /api/v1/workflows | Create a new workflow |
GET | /api/v1/workflows | List all workflows |
GET | /api/v1/workflows/:id | Get workflow by ID |
PUT | /api/v1/workflows/:id | Update workflow (creates new version) |
DELETE | /api/v1/workflows/:id | Disable workflow |
POST | /api/v1/workflows/validate | Validate definition without saving |
GET | /api/v1/workflows/:id/versions | List all versions |
GET | /api/v1/workflows/:id/versions/:v | Get specific version |
Create Workflow
Request BodyWorkflow Runs
Endpoints for executing workflows and tracking their progress.| Method | Endpoint | Description |
|---|---|---|
POST | /api/v1/workflow-runs | Start a new run |
GET | /api/v1/workflow-runs | List runs (filter by workflow_id, status) |
GET | /api/v1/workflow-runs/:id | Get run status and output |
GET | /api/v1/workflow-runs/:id/stream | SSE stream of run updates |
GET | /api/v1/workflow-runs/:id/steps | List completed steps |
POST | /api/v1/workflow-runs/:id/pause | Pause execution |
POST | /api/v1/workflow-runs/:id/resume | Resume paused run |
POST | /api/v1/workflow-runs/:id/cancel | Cancel run |
Start Run
Request BodyStreaming 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 beginsstep_started: Emitted when a step begins executionstep_completed: Emitted when a step finishesrun_completed: Emitted when the entire workflow finishesrun_failed: Emitted if an error occurs
Human Approvals
Endpoints for managinghuman_approval steps in workflows.
| Method | Endpoint | Description |
|---|---|---|
GET | /api/v1/workflow-approvals | List pending approvals |
GET | /api/v1/workflow-approvals/:id | Get approval details |
POST | /api/v1/workflow-approvals/:id/approve | Approve with optional comment |
POST | /api/v1/workflow-approvals/:id/reject | Reject with reason |
Approve Request
Request BodySet
X-Approver-ID header to identify the approver. Defaults to api-user if not provided.
