POST /rest/workflows
workflow_id or workflow_name.{"user_query": "string"}).=, !=, <, >, <=, >=, in, not_in, is_null, is_not_null.["production", "staging"]).| Node Type | Description |
|---|---|
VARIABLE | Static value |
CODE_EXECUTION | Run Python or JavaScript code |
PROMPT_TEMPLATE | Call an LLM with a prompt template |
ENDPOINT | Make an HTTP request |
COMPARE | Compare two values |
CONTAINS | Check if string contains value |
LLM_ASSERTION | LLM-based evaluation |
AI_DATA_EXTRACTION | Extract structured data |
CODING_AGENT | Claude Code sandbox |
| Status Code | Error |
|---|---|
| 400 | Invalid request body, duplicate name, validation errors |
| 401 | Missing or invalid API key |
| 404 | Workflow not found (when using workflow_id or workflow_name) |
Your API key for authentication.
Request body for creating a new workflow or workflow version.
The nodes in the workflow.
The name for a new workflow. If not provided, a name will be auto-generated.
1 - 255The ID of an existing workflow to create a new version for.
The name of an existing workflow to create a new version for.
The folder ID to place the workflow in.
A message describing the changes in this version.
A mapping of variable names to their types.
Conditional edges between nodes.
Labels to attach to this version.
Workflow created successfully
Response after creating or patching a workflow.
Indicates if the request was successful.
The ID of the workflow.
The name of the workflow.
The ID of the created workflow version.
The version number.
The base version this was created from (PATCH only).
Labels attached to this version.
Summary of nodes in the workflow.
Required input variables for the workflow.