Skip to main content
POST
Create workflow

Authorizations

x-api-key
string
header
required

Body

application/json
name
string
required

Workflow name.

Required string length: 1 - 120
plan
WorkflowPlan · object
required

The workflow DAG. See the endpoint description for the plan format.

trigger
WorkflowTrigger · object

Trigger config. Defaults to MANUAL.

maxCreditsPerRun
integer | null

Optional per-run credit ceiling.

publish
boolean

When true, publish immediately after creating the draft (strict validation applies). Default false.

Response

Workflow created

status
enum<string>
required
Available options:
success
message
string
required
data
object
required