---
title: "Stop thread"
method: POST
path: "/v1/threads/{threadId}/stop"
tags: ["threads"]
---

# Stop thread

`POST /v1/threads/{threadId}/stop`

Stop an actively running captain thread.

## Path parameters

- `threadId` string, required

## Response `200`

Success

- StopThreadResponse
  - `id` string, required
  - `status` 'active' | 'idle' | 'archived', required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `409` — Conflict
- `422` — Validation error
- `429` — Too many requests
- `500` — Internal error

---

[API](https://skmtc.dev/capy/apis/capy-api.md) · [All operations](https://skmtc.dev/capy/apis/capy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/capy/capy-api/revisions/c9ea28cb32b6/schema)
