> ## Documentation Index
> Fetch the complete documentation index at: https://botsify.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Clone Agent — Duplicate a Botsify Agent with All Data

> Create an exact duplicate of an existing Botsify agent, including all configuration, flows, and versions. The clone gets a new unique bot ID and API key.

Create an exact duplicate of an existing Botsify agent, including all of its configuration, flows, versions, and settings. The cloned agent is added to your workspace as a new, independent bot with its own unique ID and API key. Cloning is useful for creating staging environments, experimenting with changes, or reusing an established bot as a starting point for a new project.

## Request

<ParamField path="bot_id" type="string" required>
  The unique ID of the agent you want to clone. Supplied as a path parameter in the URL.
</ParamField>

## Example

```bash theme={null}
curl --request GET \
  --url https://app.botsify.com/api/v1/clone-agent/12345 \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
```

## Response

A successful `200 OK` response returns the newly created clone's identifiers and confirms the source agent it was copied from.

| Field | Type | Description |
| - | - | - |
| `new_bot_id` | string | The unique ID assigned to the cloned agent. |
| `new_api_key` | string | The API key assigned to the cloned agent. |
| `bot_name` | string | The name of the cloned agent (copied from the source). |
| `source_bot_id` | string | The ID of the original agent that was cloned. |

```json theme={null}
{
  "new_bot_id": "67890",
  "new_api_key": "bfy_live_yyyyyyyyyyyy",
  "bot_name": "Support agent (copy)",
  "source_bot_id": "12345"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.