v1
latestOpenAPI 3.1.02026-08-06284092.1 KBworkflows
Save a new workflow draft
Persist an in-progress workflow as a resumable draft.
A draft is a real workflow row in draft status: it is private to its author, never appears in the normal workflow list, never counts against the plan's workflow cap, and cannot be run, cloned, promoted, or shared. Validation is deliberately loose so a half-finished workflow (missing steps, an unconfigured agent, no name) still saves. There is no capacity gate here on purpose. The cap is enforced only when the draft is published. No WORKFLOW_CREATED audit is written for a draft; that is emitted at publish time when the workflow becomes real.
post/api/v2/workflows/drafts
Request body
Example request
{
"steps": [
{
"agent_id": "object-detection-v1"
}
]
}Response
Successful Response
Example response
{
"steps": [
{
"name": "Overview shot",
"workflow_note": "Stand back and capture the whole subject in frame.",
"agent_id": "object-detection-v1"
}
]
}