---
title: "Fork a thread"
method: POST
path: "/threads/{id}/fork"
---

# Fork a thread

`POST /threads/{id}/fork`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/threads/{id}/fork`
- Auth: HTTP bearer

Continue one agent's conversation in a thread of its own, on a computer of its own. `columnId` names the agent (the first when omitted); `target` (`{agentType, llm?, reasoningEffort?}` or `{agentId, llm?}`) moves it to another agent or model; `messageId` stops the carried conversation at that message. Asking again with the same `requestId` after `fork_pending` resumes the fork.

## Path parameters

- `id` string, required

## Request body

- object
  - `requestId` string, required
  - `columnId` string
  - `messageId` string
  - `target` object

## Response `201`

OK

- object
  - `playgroundId` string

## Other responses

- `400`: Error — { error: { code, message } }
- `401`: Error — { error: { code, message } }
- `403`: Error — { error: { code, message } }
- `404`: Error — { error: { code, message } }
- `409`: Error — { error: { code, message } }
- `422`: Error — { error: { code, message } }
- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/threads/:id/fork/post.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
