Skip to main content
Version: v3

Validate Workflow Definition

POST 

/workflows/definition/validate

Run the full save pipeline against a definition and report what a real save would do. Nothing is persisted. Returns 200 with valid: false when the definition is rejected — a 4xx here means the request itself was malformed.

Request​

Version stringrequired

API Version

Available optionsv3
locationId stringrequired

Sub-account (location) ID the workflow belongs to

application/json

Bodyrequired

    namestringrequired

    Workflow name

    sourceobjectrequired

    Where this definition came from

    triggersobject[]required

    Triggers that enrol contacts. May be empty — a workflow with no trigger can still be entered by another workflow or by the API — but the key must be present.

    triggerRelationstring

    How multiple triggers combine. Echoed by Get Workflow Definition; ignored on write — the system always stores or.

    Available optionsandor
    actionsobject[]required

    Steps. May be an empty array, but the key must be present.

    edgesobject[]required

    Connections between steps. May be empty, but the key must be present.

    settingsobject

    Workflow-level settings

    folderNamestring

    Single-segment folder to place the workflow in. Mutually exclusive with folderPath.

    folderPathstring[]

    Folder path, outermost first, max 10 levels. Mutually exclusive with folderName.

    createFolderIfMissingboolean

    Create the folder if it does not exist. Requires folderName or folderPath.

    versionnumber

    The workflow's version counter, owned by the system — not a format version. Get Workflow Definition fills it in; leave it untouched and send it back on update, and a concurrent edit in the builder can never be silently overwritten. A stale value is rejected with 422.

    Treat it as opaque: echo it, never compute from it. It does not always advance by one (delete and restore each add 0.1, and a later save rounds up), so it is not always an integer.

    Optional here: a create-shaped definition has no counter yet.

    workflowIdstring

    Validate as an update of this workflow rather than as a create. 404 if it does not exist.

application/json

Validation result

Schema
    validbooleanrequired

    Whether this exact body would save right now. false is still a 200.

    errorsobject[]required

    Blocking findings

    warningsobject[]required

    Non-blocking findings