Skip to main content
POST
/
api
/
v1
/
workflows
/
{wfId}
/
cancel
curl -X POST \
  -H "Authorization: Bearer alf_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}' \
  /api/v1/workflows/curator-sweep-20260226-143022/cancel
{
  "message": "Workflow cancelled"
}
Request graceful cancellation of a running workflow. Unlike terminate, cancellation allows the workflow to execute cleanup logic before stopping.
wfId
string
required
The workflow ID to cancel
run_id
string
Specific run ID to cancel. If omitted, cancels the most recent run.
curl -X POST \
  -H "Authorization: Bearer alf_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}' \
  /api/v1/workflows/curator-sweep-20260226-143022/cancel
{
  "message": "Workflow cancelled"
}