---
title: "Duplicate agent"
method: POST
path: "/v1/agents/{agentId}/duplicate"
tags: ["Agents"]
---

# Duplicate agent

`POST /v1/agents/{agentId}/duplicate`

## Request body

- DuplicateAgentBody
  - `newAgentId` string
  - `newAgentName` string, required

## Response `200`

Duplicated agent

- CreateAgentResponse
  - `accountId` string, required
  - `agentId` string, required
  - `agentName` string, required
  - `createdAt` string, required
  - `updatedAt` string, required
  - `branchCount` number, required

---

[API](https://skmtc.net/poly/apis/polyai-agents-api.md) · [All operations](https://skmtc.net/poly/apis/polyai-agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/poly/polyai-agents-api/revisions/76f3c606e395/schema)
