Skip to main content
POST
Create workflow

Authorizations

cc-key
string
header
required

API key-based authentication. Provide your CloudCruise API key in the cc-key header.

Headers

cc-key
string

CloudCruise API key for authentication

Body

application/json

Payload for creating a new workflow via POST. The workflow ID is generated server-side.

name
string
required

Display name of the workflow

nodes
object[]
required

Array of workflow step nodes

edges
object
required

Map of edges connecting workflow nodes

input_schema
object
required

JSON Schema defining the workflow's input variables

output_schema
object
required

Selects which fields the run returns in its result and webhook payload. Only the fields named under properties are returned; pass an empty object {} to return the whole run context instead, excluding the run's inputs. A schema that names no properties - {"type": "object", "properties": {}} - is stored and applied as {}.

max_retries
integer
required

Maximum number of retry attempts for failed workflow steps

description
string | null

Optional description of the workflow

version_note
string

Optional note describing this version

extract_network_urls
string[] | null

URL patterns to extract from network traffic during execution

encrypted_keys
string[] | null

References to encrypted vault keys used by this workflow

popup_xpaths
string[] | null

XPath selectors for popups that should be automatically dismissed

vault_schema
object | null

Schema defining vault credentials required by this workflow

Example:
enable_popup_handling
boolean

Whether automatic popup handling is enabled

enable_action_timing_recovery
boolean

Whether action timing recovery is enabled

enable_xpath_recovery
boolean

Whether automatic XPath recovery is enabled

enable_node_description_enrichment
boolean

Whether node descriptions are auto-enriched for reliability improvements

run_window
object | null

Run window for the workflow. Leave it out on save to keep the current one, send null to remove it. See Run Window.

enable_error_code_generation
boolean

Whether automatic error code generation is enabled

enable_service_unavailable_recovery
boolean

Whether service unavailable recovery is enabled

enable_incorrect_form_input_recovery
boolean

Deprecated, no effect

enable_password_update_recovery
boolean

Whether password update recovery is enabled. When a site forces a password change, the Maintenance Agent classifies the error and sends a notification.

enable_tfa_setup_recovery
boolean

Deprecated, no effect

manual_captcha_solve
boolean
default:true

When true, captchas are solved only at CAPTCHA nodes. When false, the automatic solver also runs before each step that acts on the page. A new workflow created without this field gets true. Existing workflows keep their stored value.

allow_requeue
boolean

Whether automatic retries are enabled for this workflow. When false, the workflow will not be automatically retried on transient failures regardless of other recovery settings.

deny_requeue_past_dry_run_marker
boolean

When the workflow has a dry-run marker (end_here_on_dry_run), restricts automatic retries to failures that occur before the marker. Only effective when allow_requeue is true. Defaults to true.

proxy_setting
string

Proxy configuration setting

proxy_value
string

Proxy value

enable_network_listener
boolean

Whether the network listener is enabled

Response

Workflow created successfully

Full workflow definition including nodes and edges

id
string<uuid>
required

Unique identifier for the workflow

name
string
required

Name of the workflow

created_at
string<date-time>
required

Timestamp when the workflow was created

workspace_id
string<uuid>
required

ID of the workspace this workflow belongs to

created_by
string<uuid>
required

ID of the user who created the workflow

nodes
object[]
required

Array of workflow step nodes

edges
object
required

Map of edges connecting workflow nodes

description
string | null

Description of the workflow

updated_at
string<date-time>

Timestamp when the workflow was last updated

version_id
string<uuid>

ID of the current workflow version

version
string

Semantic version (major.minor.patch) of this version

Example:

"2.1.0"

major
integer

Major part of version

minor
integer

Minor part of version

patch
integer

Patch part of version

bump_type
enum<string> | null

How version was derived from its parent, or null when it was chosen explicitly or has no parent

Available options:
major,
minor,
patch
branch_id
string<uuid> | null

Branch this version was saved to

default_branch_id
string<uuid> | null

The workflow's default branch, used by runs and reads that name no branch

parent_version_id
string<uuid> | null

The version this one was saved on top of

merge_parent_version_id
string<uuid> | null

For a merge, the head of the branch that was merged in

input_schema
object | null

JSON schema defining the workflow's input variables

vault_schema
object | null

Schema defining vault credentials and their configuration

enable_popup_handling
boolean

Whether popup handling is enabled for this workflow

enable_xpath_recovery
boolean

Whether XPath recovery is enabled for this workflow

enable_node_description_enrichment
boolean

Whether node descriptions are auto-enriched for reliability improvements

run_window
object | null

Run window for the workflow. Leave it out on save to keep the current one, send null to remove it. See Run Window.

enable_error_code_generation
boolean

Whether error code generation is enabled for this workflow

enable_service_unavailable_recovery
boolean

Whether service unavailable recovery is enabled for this workflow

enable_incorrect_form_input_recovery
boolean

Deprecated, no effect

enable_password_update_recovery
boolean

Whether password update recovery is enabled. When a site forces a password change, the Maintenance Agent classifies the error and sends a notification.

enable_tfa_setup_recovery
boolean

Deprecated, no effect

manual_captcha_solve
boolean

When true, captchas are solved only at CAPTCHA nodes. When false, the automatic solver also runs before each step that acts on the page. A new workflow created without this field gets true. Existing workflows keep their stored value.

allow_requeue
boolean

Whether automatic retries are enabled for this workflow. When false, the workflow will not be automatically retried on transient failures regardless of other recovery settings.

deny_requeue_past_dry_run_marker
boolean

When the workflow has a dry-run marker (end_here_on_dry_run), restricts automatic retries to failures that occur before the marker. Only effective when allow_requeue is true. Defaults to true.

enable_action_timing_recovery
boolean

Whether action timing recovery is enabled

enable_network_listener
boolean

Whether network listener capture is enabled for this workflow version