Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
json_definition | WorkflowCreateYamlRequest | No | Workflow definition as a JSON object. |
yaml_definition | str | No | Workflow definition as a YAML string. |
folder_id | str | No | Folder to organize the workflow in. |
request_options | RequestOptions | No | Per-request configuration (see below). |
json_definition or yaml_definition.
Returns Workflow
| Field | Type | Description |
|---|---|---|
workflow_id | str | Unique ID for this version. |
workflow_permanent_id | str | Stable ID across all versions. Use this to run workflows. |
version | int | Version number. |
title | str | Workflow title. |
workflow_definition | WorkflowDefinition | The full definition including blocks and parameters. |
status | str | None | Workflow status. |
created_at | datetime | When the workflow was created. |
Request options
Override timeout, retries, or headers for this call by passingrequest_options (Python) or a second options argument (TypeScript).
| Option (Python) | Option (TypeScript) | Type | Description |
|---|---|---|---|
timeout_in_seconds | timeoutInSeconds | int / number | HTTP timeout in seconds. |
max_retries | maxRetries | int / number | Retry count. |
additional_headers | headers | dict / Record<string, string> | Extra headers. |
additional_query_parameters | - | dict | Extra query parameters. |
additional_body_parameters | - | dict | Extra body parameters. |
| - | abortSignal | AbortSignal | Signal to cancel the request. |
| - | apiKey | string | Override API key. |

