Limited availability. The workflow API is currently enabled for selected sub-accounts only; any other sub-account receives 403 WORKFLOW_API_NOT_ENABLED_FOR_LOCATION.
Replace a workflow definition in full. This is a complete overwrite — any step absent from the request is deleted, so always read the current definition first and send it back modified — the definition carries its own version, so sending back what you read keeps you protected against overwriting a concurrent edit. A stale version is rejected with 422 and nothing is written.
Draft only. A published workflow is rejected with 409: the overwrite would replace steps under contacts currently moving through it. Set the workflow to draft with Update Workflow Status, update it, then publish it again.
Order matters. Changing status advances the version, so read the definition after setting the workflow to draft: draft → read → update → publish. Reading first and drafting second leaves you holding a stale version.
Authorizations
Authorizationstringheaderrequired
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
Identifier for the system authoring this definition
Example:my-app
source.workflowIdstring
Your own identifier for the workflow, echoed back for correlation
Example:wf-42
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.
Example
[{"type":"contact_created","name":"New contact"}]
triggers[].typestringrequired
Trigger type key
Example:contact_created
triggers[].namestring
Display name shown on the canvas
Example:New contact
triggers[].conditionsobject[]
Trigger filters. Shape depends on type; use Validate Workflow Definition to check it.
Example:[]
triggers[].scheduleConfigobject
Schedule for scheduler-type triggers. Absent on every other trigger type. Get Workflow Definition returns it in this shape and Update Workflow Definition accepts it back.
Example
{"stopAt":1767225600000,"skipWeekends":true}
triggers[].scheduleConfig.stopAtnumber
When the schedule stops firing, as epoch milliseconds (UTC). Omit for no end date.
Example:1767225600000
triggers[].scheduleConfig.skipWeekendsboolean
Skip runs that would fall on a Saturday or Sunday.
Example:true
triggers[].idstring
Trigger ID. Assigned when omitted. Get Workflow Definition returns it; sending it back keeps the trigger stable across updates.
Possible values:<= 200 characters
Example:7c1f0d2e-3b4a-4c5d-8e9f-0a1b2c3d4e5f
triggers[].positionobject
Canvas position, as the builder stores it. Echoed by Get Workflow Definition; optional on write.
Example
{"x":120,"y":240}
triggers[].position.xnumberrequired
Horizontal canvas position
Example:120
triggers[].position.ynumberrequired
Vertical canvas position
Example:240
triggers[].testResponseobject
Sample event captured by the builder for testing the trigger. Passed through verbatim.
Step ID. Any non-empty string, unique within the definition — a readable id like welcome-sms is fine, and edges reference it by that name. It does not have to be a UUID; ids that are not get converted to one when the workflow is saved, so a definition read back will carry the converted ids rather than the ones sent.
Reuse ids across updates. A step keeps contacts already mid-workflow on their current step only while it keeps its id. Sending back the ids from Get Workflow Definition is the reliable way to do that — a readable id also converts to the same value every time for a given workflow, so re-sending an authored definition is safe too.
Possible values:<= 200 characters
Example:welcome-sms
actions[].typestringrequired
Step type key
Example:add_contact_tag
actions[].namestring
Display name shown on the canvas
Example:Tag as lead
actions[].attributesobject
Step configuration. The shape depends on type — fetch it from Get Step Types and check it with Validate Workflow Definition.
Example
{"tags":["new-lead"]}
actions[].attributes.property name*any
Step configuration. The shape depends on type — fetch it from Get Step Types and check it with Validate Workflow Definition.
Example
{"tags":["new-lead"]}
actions[].positionobject
Canvas position, as the builder stores it. Echoed by Get Workflow Definition; optional on write.
Example
{"x":120,"y":240}
actions[].position.xnumberrequired
Horizontal canvas position
Example:120
actions[].position.ynumberrequired
Vertical canvas position
Example:240
actions[].metadataobject
Importer bookkeeping. Passed through verbatim.
Example
{"unmapped":false}
actions[].metadata.property name*any
Importer bookkeeping. Passed through verbatim.
Example
{"unmapped":false}
actions[].workflowsActionTypestring
Marketplace (IATF) steps only: the action class the app registered. Echoed by Get Workflow Definition; send it back unchanged.
Example:INTEGRATION
actions[].isMarketplaceActionboolean
Marketplace (IATF) steps only: marks the step as a marketplace action.
Example:true
actions[].containerstring
ID of the container step this step is nested in, where the builder uses one.
Example:loop-1
edgesobject[]required
Connections between steps. May be empty, but the key must be present.
Default sender details, passed through verbatim. Recognised keys are from_name, from_email and from_number. Declared as a free-form object rather than a typed schema because those keys are snake_case on the wire — the workflow format uses them verbatim, and a typed schema would fail the public-spec camelCase rule while renaming them would break round-tripping.
Default sender details, passed through verbatim. Recognised keys are from_name, from_email and from_number. Declared as a free-form object rather than a typed schema because those keys are snake_case on the wire — the workflow format uses them verbatim, and a typed schema would fail the public-spec camelCase rule while renaming them would break round-tripping.
Single-segment folder to place the workflow in. Mutually exclusive with folderPath.
Example:Sales
folderPathstring[]
Folder path, outermost first, max 10 levels. Mutually exclusive with folderName.
Example:["Sales","Q3"]
createFolderIfMissingboolean
Create the folder if it does not exist. Requires folderName or folderPath.
Example:true
versionnumberrequired
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.
Required on update: send back the value you read. An update without it is rejected with 422 before anything is written.
Example:3
Response
application/json
Workflow updated
workflowIdstringrequired
Workflow ID
Example:b1b0de82-3efb-4d63-83f6-13c50aef208c
statusstring
Whether the workflow is live. Read-only here — change it with Update Workflow Status, which is gated by the workflows.publish scope. Absent only in the rare case where the update succeeded but the workflow could not be read back.
Available optionsdraftpublished
Example:draft
definitionobject
The updated workflow, in the same shape Get Workflow Definition returns and this endpoint accepts — so a follow-up edit needs no separate read. Note version has advanced: an update increments the counter, and sending a stale one is rejected with 422. Absent only if the update succeeded but the workflow could not be read back.
definition.property name*any
The updated workflow, in the same shape Get Workflow Definition returns and this endpoint accepts — so a follow-up edit needs no separate read. Note version has advanced: an update increments the counter, and sending a stale one is rejected with 422. Absent only if the update succeeded but the workflow could not be read back.
warningsobject[]required
Non-blocking findings
warnings[].pathstring
Path within the definition
Example:actions[4]
warnings[].messagestring
What to be aware of
Example:Action 'orphan-step' has no incoming edges and may be unreachable.