Workflows
Update Workflow Status
Activate, pause, deactivate, or resume a v1 workflow.
PATCH
Changes state - verify before retry
Update Workflow Status changes whether a workflow is running or paused. Use this endpoint instead of the older action-specific workflow endpoints when integrating with
/v1.
When To Use Update Workflow Status
- Use
activatewhen a validated workflow should start execution for its leads. It is also the action to use after uploading leads to a paused workflow. - Use
deactivateorpausewhen an active workflow should stop starting new leads. The two are the same operation. - Use
resumewhen a paused workflow should be active again and every lead it should process already has an execution.
Status Actions
Each action moves the workflow to a specific status:What pausing does not stop
Pausing changes the workflow status only. A lead that is already inside the workflow is not frozen:- When a lead’s wait step expires, the lead moves on to the next node, even in a paused workflow.
- When a call placed by a Voice Call node finishes, the lead is routed along that call’s outcome.
- If either moves the lead into a Voice Call node, a call is queued. It is not dialed while the workflow is paused, and it is dialed once the workflow is active again after
resumeoractivate. - Application and Custom Function nodes the lead reaches still run.
- An inbound call from a lead that is already inside the workflow is still routed to the matching Voice Call node. A lead without an active execution (not started yet, or already finished) is not routed while the workflow is paused.
Verify The Result
The response includes the full workflow record indata.data, and data.message names the action, for example Workflow activated successfully. Confirm that data.data.status matches the requested transition, then call Get Workflow Details if your integration needs to refresh the workflow record later.
Common Errors
400 Bad Requestmeans the action is invalid or the workflow status does not allow the transition.422 Unprocessable Entitymeansactivateran the pre-activation checks and the workflow failed them; the body lists what to fix.401 Unauthorizedmeans the API key is missing or invalid.404 Not Foundmeans the workflow ID was not found in this workspace. A workflow that belongs to another workspace is reported the same way.
Related Endpoints
- List Workflows: find workflows in your workspace.
- Get Workflow Details: fetch a workflow by ID.
- Workflow Leads: inspect leads attached to a workflow.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Workflow ID
Example:
"workflow_abc123"
Body
application/json
activate validates the workflow, sets it active and starts leads without an execution; deactivate and pause set it paused, which stops new lead starts and holds queued calls until it is active again, but does not stop leads already in a step from advancing; resume sets a paused workflow active without starting leads added while paused.
Available options:
activate, deactivate, pause, resume Example:
"activate"