Skip to main content
POST
Create a new workflow

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Human-readable workflow name. Must be unique within the caller organization.

description
string

Free-text description shown in the workflows list and builder header.

nodes
object[]

Visual builder nodes — each carries id, type, position, and node-specific data.

edges
object[]

Directed connections between nodes (sourcetarget ids) defining execution flow.

viewport
object

Camera state for the canvas (x, y, zoom). Defaults to { x: 0, y: 0, zoom: 1 } when omitted.

enabled
boolean

When false, the trigger system skips this workflow even when conditions match. Defaults to false on create.

Response

Workflow created successfully

Returned by create/update/toggle. Wraps the resulting WorkflowDocument plus a status message.

success
enum<boolean>
required
Available options:
true
message
string
required
data
object
required

A Workflow document — visual builder canvas (nodes + edges) plus enabled flag and metadata.

Example: