Palbase ai · API
POST
/ai/runs/{root_id}/stop-treeStop an entire workflow and delegation tree
One-click kill switch that cancels every workflow run, open wait, active response, and work permit under a root identifier.
Called by your server, with the project's secret key.
Path
root_idstring · requiredRoot workflow or response identifiercurl
curl -X POST "https://<your-ref>.palbase.studio/ai/runs/<root_id>/stop-tree" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200Run tree stopped
400The request is malformed, or names what this module does not offer (the error names which)
401No valid credential
403A publishable key or a user's session: everything here is the project's server's, called with the secret key
404No such response, job or provider in this project
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation StopRunTree of ai's contract.