Skip to main content
GET
cURL

Authorizations

Authorization
string
header
required

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

Path Parameters

workflow_id
string<uuid>
required

The unique id of the workflow

Response

The draft definition and revision

definition
object
required

The workflow graph. nodes is a flat list of node envelopes — {id, type, name, config, cases} — where type is one of start, agent, extraction, api, time, retry, aisensy_whatsapp or end. Each node's cases array routes to the next node via condition expressions (time nodes use a single to instead, end nodes have neither). See Nodes and Conditions and variables for the full schema, and the Node Types API for every config parameter with defaults and bounds.

Example:
revision
integer
required

Current draft revision — send it back as expected_revision when saving.