DocumentationCancel Run

Cancel run

POST /api/v1/tasks/runs/{run_id}/cancel - Cancel a queued or running run.

Cancel run

POST /api/v1/tasks/runs/{run_id}/cancel

Fails if the run is already in a terminal state (succeeded, failed, cancelled).

Response (200)

json
{
  "run_id": "run_abc123...",
  "status": "cancelled",
  "finished_at": "2026-02-27T00:00:05.000Z"
}