[Beta] Create a workflow
[Beta] Create a workflow. Use when managing deterministic workflow definitions and triggering or inspecting their runs.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Workflow name
1What starts the workflow. Use "manual-trigger" for on-demand execution, "ai-trigger" for AI-initiated, "webhook" for external HTTP triggers, "cron-trigger" for scheduled runs, or event-based triggers like "ticket-created", "contact-created", etc.
manual-trigger, ai-trigger, cron-trigger, form-trigger, webhook, contact-created, phone-call-started, phone-call-finished, ticket-created, ticket-reassigned, ticket-resolved, ticket-handoff, pre-ticket-handoff, ticket-tag-added, ticket-inactive, agent-inactive, sequence-completed, csat-score-submit, prohibited-topic-detected, sla-first-reply-breached, sla-next-reply-breached, sla-resolution-breached, voice-call-transferred, pre-voice-call-transfer, pre-phone-call-finished, manual-ticket-trigger, contact-message-received, macro-called, agent-availability-changed, agent-avail-in-team-changed Array of workflow steps and control-flow blocks. Each step is an object with { "$kind": "Action", "id": "", "type": "", "name": "", "input": { ... } }. Control-flow blocks use { "$kind": "Block", "type": "if-else", "id": "", "inputs": { "condition": { "operatorName": "equals", "left": "{{step_id.field}}", "right": "value" } }, "branches": { "then": [...steps], "else": [...steps] } }. Use {{step_id.field}} to reference outputs from previous steps (no .output. segment — the field sits directly under the step id).
Workflow description
Trigger-specific configuration (e.g. cron expression for cron-trigger)
React Flow editor state (nodes, edges, viewport) for the dashboard visual editor
Response
Default Response
Version serial ID
Workflow UUID (groups all versions of the same workflow)
Workflow name
Workflow description
Whether this version is currently active
Trigger type: "manual-trigger", "ai-trigger", "cron-trigger", "webhook", "form-trigger", or event-based triggers
Version number (increments with each edit)
Workflow step/block definitions
Trigger-specific configuration
Trigger URL for webhook-type workflows. Call this URL (POST) to trigger the workflow. Null for non-webhook workflows.