---
title: "Cancel thread advancement"
method: POST
path: "/threads/{id}/cancel"
tags: ["threads"]
---

# Cancel thread advancement

`POST /threads/{id}/cancel`

Sets a thread's generation stage to CANCELLED

## Path parameters

- `id` string, required

## Response `200`

Thread cancelled successfully

- Thread
  - `metadata` object
  - `projectId` string, required
  - `generationStage` 'IDLE' | 'CHOOSING_COMPONENT' | 'FETCHING_CONTEXT' | 'HYDRATING_COMPONENT' | 'STREAMING_RESPONSE' | 'COMPLETE' | 'ERROR' | 'CANCELLED'
  - `statusMessage` string
  - `name` string
  - `id` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400` — Thread is not in a cancellable state
- `404` — Thread 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/versions/312691b28f1c/schema)
