Workflows
API reference descriptions are provided in English to preserve the exact published contract.
- GETList workflow automations
workflows.list - POSTCreate a draft workflow automation
workflows.create - GETGet a workflow and its latest definition
workflows.retrieve - DELETEDelete a workflow that is not published
workflows.delete - POSTStop a workflow for one contact without stopping the workflow
workflows.contacts.stop - DELETEResume a workflow for one stopped contact
workflows.contacts.stop.delete - POSTPublish a workflow automation
workflows.publish - GETList durable workflow runs and outcomes
workflows.runs.list - POSTStop one durable workflow run without stopping the workflow
workflows.runs.stop - POSTStop a workflow automation
workflows.stop - POSTStart an isolated workflow test run
workflows.test - POSTCreate an immutable workflow version
workflows.versions
List workflow automations
GET/v1/accounts/{AC}/workflows
workflows.listSDK operation getV1AccountsByAcWorkflows
Parameters
limitinteger (1–100)querycursorstring (max 2048 chars)query
Create a draft workflow automation
POST/v1/accounts/{AC}/workflows
workflows.createSDK operation postV1AccountsByAcWorkflows
Request body
definitionobjectRequiredShow 5 child attributes
actionsobject[]Requiredconditionsobject[]RequiredtriggerobjectRequiredfailureActionsobject[]timeoutActionsobject[]
namestring (max 160 chars)Required
Get a workflow and its latest definition
GET/v1/accounts/{AC}/workflows/{WF}
workflows.retrieveSDK operation getV1AccountsByAcWorkflowsByWf
Parameters
WFstring (WF… SID)Required
Delete a workflow that is not published
DELETE/v1/accounts/{AC}/workflows/{WF}
workflows.deleteSDK operation deleteV1AccountsByAcWorkflowsByWf
Removes a DRAFT or STOPPED workflow with its versions and finished runs. A PUBLISHED workflow must be stopped first; a workflow with RUNNING or WAITING runs is refused until those runs are stopped.
Parameters
WFstring (WF… SID)Required
Stop a workflow for one contact without stopping the workflow
POST/v1/accounts/{AC}/workflows/{WF}/contacts/{CT}/stop
workflows.contacts.stopSDK operation postV1AccountsByAcWorkflowsByWfContactsByCtStop
Parameters
WFstring (WF… SID)RequiredCTstring (CT… SID)Required
Request body
reasonstring (max 500 chars)
Resume a workflow for one stopped contact
DELETE/v1/accounts/{AC}/workflows/{WF}/contacts/{CT}/stop
workflows.contacts.stop.deleteSDK operation deleteV1AccountsByAcWorkflowsByWfContactsByCtStop
Parameters
WFstring (WF… SID)RequiredCTstring (CT… SID)Required
Publish a workflow automation
POST/v1/accounts/{AC}/workflows/{WF}/publish
workflows.publishSDK operation postV1AccountsByAcWorkflowsByWfPublish
Parameters
WFstring (WF… SID)Required
List durable workflow runs and outcomes
GET/v1/accounts/{AC}/workflows/{WF}/runs
workflows.runs.listSDK operation getV1AccountsByAcWorkflowsByWfRuns
Parameters
WFstring (WF… SID)Requiredlimitinteger (1–100)querycursorstring (max 2048 chars)query
Stop one durable workflow run without stopping the workflow
POST/v1/accounts/{AC}/workflows/{WF}/runs/{WR}/stop
workflows.runs.stopSDK operation postV1AccountsByAcWorkflowsByWfRunsByWrStop
Parameters
WFstring (WF… SID)RequiredWRstring (WR… SID)Required
Stop a workflow automation
POST/v1/accounts/{AC}/workflows/{WF}/stop
workflows.stopSDK operation postV1AccountsByAcWorkflowsByWfStop
Parameters
WFstring (WF… SID)Required
Start an isolated workflow test run
POST/v1/accounts/{AC}/workflows/{WF}/test
workflows.testSDK operation postV1AccountsByAcWorkflowsByWfTest
A dry run: the run walks the workflow's actions in order and records each as a step with detail.dryRun, but sends nothing and changes no contact, conversation or tag. A contact stopped for this workflow cannot be used for a test.
Parameters
WFstring (WF… SID)Required
Request body
eventTypestring (pattern ^[A-Z][A-Z0-9_]{2,63}$)RequiredcontactSidstring (CT… SID)conversationSidstring (CO… SID)messageSidstring (SM… SID)payloadobject
Create an immutable workflow version
POST/v1/accounts/{AC}/workflows/{WF}/versions
workflows.versionsSDK operation postV1AccountsByAcWorkflowsByWfVersions
Parameters
WFstring (WF… SID)Required
Request body
actionsobject[]Requiredconditionsobject[]RequiredtriggerobjectRequiredShow 3 child attributes
eventTypesstring (pattern ^[A-Z][A-Z0-9_]{2,63}$)[]RequiredallowReentrybooleantimeoutSecondsinteger (1–2592000)
failureActionsobject[]timeoutActionsobject[]