Approve or reject a paused workflow run
workflows_decideThe run after the decision. An agent may decide only a step with allowAgents on, with a write-level key, and only if the key's owner meets the step's approver rule. Otherwise 403: the decision belongs to a person.
POST /api/v1/workflow-runs/{runId}/decide
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. Approve or reject only when the user explicitly instructs that decision. Most approval steps are a person's call and answer 403 ('takes a person's decision'): do not look for another way, tell the user the run is waiting for them.
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>",
"decision": "<decision>"
},
"name": "workflows_decide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | ||
| decision | Yes | ||
| targetSpaceId | No | Busabase space id. Call auth_verify first and ask the user which space to use when more than one is returned. |