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

# Unarchive thread

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

Unarchive a captain thread. This does not restart or resume execution.

## Path parameters

- `threadId` string, required

## Request body

- UnarchiveThreadBody
  - `impersonateUserEmail` string, email

## Response `200`

Success

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

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `422` — Validation error
- `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)
