Skip to main content
POST
/
api
/
v1
/
workflows
/
{wfId}
/
terminate
curl -X POST \
  -H "Authorization: Bearer alf_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "Manual termination - inbox processing stuck"
  }' \
  /api/v1/workflows/curator-sweep-20260226-143022/terminate
{
  "message": "Workflow terminated"
}
Immediately terminate a running workflow execution. This is a hard stop — the workflow will not execute cleanup logic and cannot be resumed. Use cancel instead if you need graceful shutdown.
wfId
string
required
The workflow ID to terminate
reason
string
Human-readable reason for termination. Will be recorded in workflow history.
run_id
string
Specific run ID to terminate. If omitted, terminates the most recent run.
curl -X POST \
  -H "Authorization: Bearer alf_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "Manual termination - inbox processing stuck"
  }' \
  /api/v1/workflows/curator-sweep-20260226-143022/terminate
{
  "message": "Workflow terminated"
}