Docs
Esc

Suggested

QuickstartGet started
Webhooks and signaturesMessaging
Create a messagemessages.create · POST /v1/accounts/{AC}/messages
RATE_LIMITED429 · Rate limit exceeded.
message.deliveredMessage resource
Contents

API reference

Workflows

API reference descriptions are provided in English to preserve the exact published contract.

List workflow automations

GET/v1/accounts/{AC}/workflows

workflows.listSDK operation getV1AccountsByAcWorkflows

Parameters

  • limitinteger (1–100)query
  • cursorstring (max 2048 chars)query

Create a draft workflow automation

POST/v1/accounts/{AC}/workflows

workflows.createSDK operation postV1AccountsByAcWorkflows

Request body

  • definitionobjectRequired
    Show 5 child attributes
    • actionsobject[]Required
    • conditionsobject[]Required
    • triggerobjectRequired
    • failureActionsobject[]
    • 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)Required
  • CTstring (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)Required
  • CTstring (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)Required
  • limitinteger (1–100)query
  • cursorstring (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)Required
  • WRstring (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}$)Required
  • contactSidstring (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[]Required
  • conditionsobject[]Required
  • triggerobjectRequired
    Show 3 child attributes
    • eventTypesstring (pattern ^[A-Z][A-Z0-9_]{2,63}$)[]Required
    • allowReentryboolean
    • timeoutSecondsinteger (1–2592000)
  • failureActionsobject[]
  • timeoutActionsobject[]