Cancel a workflow run
workflows_cancelThe cancelled run. A run executing a step answers 409, because a step already sent cannot be taken back.
POST /api/v1/workflow-runs/{runId}/cancel
For multi-space accounts, call auth_verify, ask the user which space to use, and pass targetSpaceId. A workflow run can call webhooks and functions and create, change, or delete records. It acts as this key's owner but never beyond this key's permission level. If the key is revoked, expires, or is lowered while a run waits, the run fails instead of carrying on. Cancelling stops the run for good and does not undo steps that already ran. A run executing a step answers 409: try again after it finishes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"runId": "<runId>"
},
"name": "workflows_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | ||
| targetSpaceId | No | Busabase space id. Call auth_verify first and ask the user which space to use when more than one is returned. |