---
title: "Cancel run"
method: DELETE
path: "/v1/threads/{threadId}/runs/{runId}"
tags: ["v1"]
---

# Cancel run

`DELETE /v1/threads/{threadId}/runs/{runId}`

Explicitly cancel a running run. Note: closing the SSE connection also cancels the run.

## Path parameters

- `threadId` string, required
- `runId` string, required

## Query parameters

- `userKey` string

## Response `200`

Run cancelled

- CancelRunResponse
  - `runId` string, required — The run ID that was cancelled
  - `status` 'cancelled', required — New status after cancellation (always 'cancelled')

## Other responses

- `404` — Run not found

---

[API](https://skmtc.net/tambo-ai/apis/tambo-api.md) · [All operations](https://skmtc.net/tambo-ai/apis/tambo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tambo-ai/tambo-api/revisions/312691b28f1c/schema)
