Skip to content
View as Markdown

Cancel flow runs

Cancels all active Workflow runs for the given contact or group. Safe to call when there are no active runs. POST is accepted as an alias for clients that cannot send DELETE with a body.

DELETEPOST/cancel-flow-runsBearer token

Request body

phoneNumberstring
The contact's phone number. Cancels all of this contact's active Workflow runs. Accepts many formats — normalized to E.164. Exactly one of phoneNumber or groupId is required.
groupIdstring
The groupId returned by POST /send-group-message (pbg_…). Exactly one of phoneNumber or groupId is required. Cancels all active Workflow runs for that group.

Status codes

400
Provide phoneNumber or groupId, not both; phoneNumber or groupId is required
404
Group not found for this account
API reference