---
title: "Clone Topic"
method: POST
path: "/api/topic/clone"
tags: ["Topic"]
---

# Clone Topic

`POST /api/topic/clone`

Create a new chat topic from a `topic_id`. The new topic will be attched to the owner_id and act as a coordinator for conversation message history of gen-AI chat sessions. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.

## Headers

- `TR-Dataset` string, required

## Request body

- CloneTopicReqPayload
  - `name` string, nullable — The name of the topic. If this is not provided, the topic name is the same as the previous topic
  - `owner_id` string, required — The owner_id of the topic. This is typically a browser fingerprint or your user's id. It is used to group topics together for a user.
  - `topic_id` string, uuid, required — The topic_id to clone from

## Response `200`

The JSON response payload containing the created topic

- Topic
  - `created_at` string, date-time, required
  - `dataset_id` string, uuid, required
  - `deleted` boolean, required
  - `id` string, uuid, required
  - `name` string, required
  - `owner_id` string, required
  - `updated_at` string, date-time, required

## Other responses

- `400` — Topic name empty or a service error

---

[API](https://skmtc.net/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.net/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/revisions/84583e7c9fc1/schema)
