Create workflow

http
POST /projects/{project_reference}/workflows

Create a workflow source file in the project source or a preview branch when a new multi-step process must be runnable or schedulable; returns the workflow source document. Requires project.runs.write.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
source_target_kindquery
target_branch_idquery

Request body

FieldTypeRequiredDescription
idstringYesStable workflow identifier used in MCP and project source.
descriptionstring,nullOptional short description of what the workflow does.
versionstring,nullOptional workflow version string.
schedulablebooleanWhether the workflow can be triggered by schedulers.

Responses

StatusDescription
201Created workflow document
400Bad request
401Unauthorized
403Forbidden
409Conflict