---
title: "Fork Conversation"
method: POST
path: "/snapshots/{snapshot_id}/chat/conversations/{conversation_id}/fork"
tags: ["chat"]
---

# Fork Conversation

`POST /snapshots/{snapshot_id}/chat/conversations/{conversation_id}/fork`

## Request

- Base URL: `https://api.repowise.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.repowise.dev/snapshots/{snapshot_id}/chat/conversations/{conversation_id}/fork`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/repowise/apis/repowise-hosted-api/docs/snapshots/:snapshot_id/chat/conversations/:conversation_id/fork/post.ts> (a function with typed inputs; its response is checked against the schema)

Branch a conversation into a new one.

Body takes an optional `through_message_id` (keep that message) or
`before_message_id` (stop just short of it); at most one. Omitting both
copies the whole conversation.

## Path parameters

- `snapshot_id` string, required
- `conversation_id` string, required

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) - [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) - [OpenAPI document](https://skmtc.dev/repowise/apis/repowise-hosted-api/revisions/3037f631a606?raw)
