---
title: "Cancel a run"
method: POST
path: "/runs/{runId}/cancel"
tags: ["Runs"]
---

# Cancel a run

`POST /runs/{runId}/cancel`

## Request

- Base URL: `https://api.sazabi.com/v1`
- URL: `https://api.sazabi.com/v1/runs/{runId}/cancel`
- Auth: none declared

Request cancellation of an in-flight run. Idempotent and best-effort: returns success even when the run has already reached a terminal status. A queued follow-up is withdrawn from the thread's queue and never runs; the run in flight ahead of it is not touched. Cancelling a run that has ended never stops a later run on the same thread.

## Path parameters

- `runId` string, uuid, required: Run ID of the in-flight run to request cancellation for.

## Response `200`

OK

- object
  - `success` unknown, required

---

[API](https://skmtc.dev/sazabi/apis/sazabi-public-api.md) - [All operations](https://skmtc.dev/sazabi/apis/sazabi-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sazabi/apis/sazabi-public-api/revisions/965b6230cf45?raw)
