Workflows
Multi-step processes: authored, compiled, deployed, then run.
List workflows
Returns the workspace's workflows. The compiled definition is not included — read one workflow to get it.
query Parameters
cursor^[A-Za-z0-9_-]+$limitoffsetsort^-?[a-z0-9_]+$wf_activewf_idwf_titleHeaders
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
List workflows › Responses
Success
has_moreWhether more rows exist past this page.
next_cursorPass back as cursor for the next page. Null on the last page.
Create a workflow
Creates a workflow. It is authored here, then compiled and deployed before anything can run it.
Headers
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
Create a workflow › Responses
Created
wf_idwf_namewf_titlewf_descriptionwf_versionwf_triggerwf_statuswf_providerwf_managed_bywf_activewf_createdwf_updatedGet a workflow
Returns the workflow with its steps, its trigger and whether it is deployed.
path Parameters
idHeaders
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
Get a workflow › Responses
Success
wf_idwf_namewf_titlewf_descriptionwf_versionwf_triggerwf_statuswf_providerwf_managed_bywf_activewf_createdwf_updatedDelete a workflow
Deactivates the workflow. Instances that already ran keep their record.
path Parameters
idHeaders
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
Delete a workflow › Responses
Success
Update a workflow
Applies the wf_-prefixed fields present in the body. Editing a deployed workflow does not redeploy it — compile and deploy again for the change to take effect.
path Parameters
idHeaders
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
Update a workflow › Responses
Success
wf_idwf_namewf_titlewf_descriptionwf_versionwf_triggerwf_statuswf_providerwf_managed_bywf_activewf_createdwf_updatedCompile a workflow
Turns the authored steps into the definition the engine runs, and reports what does not compile. Nothing is deployed — this is the check before deploying.
path Parameters
idHeaders
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
Compile a workflow › Responses
Success
Deploy a workflow
Publishes the compiled definition to the execution engine. Until this runs, edits are invisible to anything executing.
path Parameters
idHeaders
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
Deploy a workflow › Responses
Success
List instances
The same collection as GET /workflow-instances, narrowed to this workflow.
path Parameters
idquery Parameters
cursor^[A-Za-z0-9_-]+$limitoffsetsort^-?[a-z0-9_]+$wi_createdwi_idwi_initiated_bywi_statuswi_updatedwi_workflowHeaders
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
List instances › Responses
Success
Start an instance
Starts an instance of the deployed definition. Answers 202 with the instance to follow the progress by — Location points at it under /workflow-instances.
path Parameters
idHeaders
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
Start an instance › Responses
Success
Delete a step
Removes one step. Steps that pointed at it need repointing before the workflow will compile.
path Parameters
idstep_idHeaders
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
Delete a step › Responses
Success. No content.
Update a step
Changes one step of a workflow. The workflow has to be compiled again before the change reaches anything running.
path Parameters
idstep_idHeaders
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
Update a step › Responses
Success
List functions
The registry a step is built against. Static — it describes the platform, not the workspace.
Headers
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
List functions › Responses
Success
List next states
Where the caller may move something next, given its current state and their permissions.
query Parameters
stateworkflowHeaders
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
List next states › Responses
Success
Complete a manual step
A workflow can pause for a human decision. This supplies it and lets the instance continue.
path Parameters
idHeaders
X-Tenant-IdThe workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.
Complete a manual step › Responses
Success
