Duplicate an agent
duplicate an AI agent.
POST
https://api.centerfy.ai/webhooks/inbound/agents/:id/duplicate Headers
| Header | Required | Value | Description |
|---|---|---|---|
x-api-key | Yes | your sub-account API key (cfy_…) | Authenticates the request; or use Authorization: Bearer <key>. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | The source agent id to duplicate. |
Example
curl -X POST "https://api.centerfy.ai/webhooks/inbound/agents/{id}/duplicate" \
-H "x-api-key: $CENTERFY_API_KEY" import { CenterfyClient } from "@centerfy/sdk";
const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });
const result = await centerfy.agents.duplicate("<agentId>");
console.log(result); centerfy agents duplicate <agentId> MCP tool: centerfy_agents_duplicate (see MCP server)
Response
{
"status": "success",
"duplicated_from": "<agent_id>",
"agent": {
"id": "c9b8a7d6-0000-4000-8000-000000000002",
"name": "Front Desk Assistant (copy)",
"is_active": true,
"created_at": "2026-06-12T10:35:00.000Z"
}
}Notes
Creates a copy of the source agent carrying its full configuration, but with a fresh id and “(copy)” appended to the name. No request body. Errors: 400 (invalid agent id), 401 (unauthenticated), 404 (agent not found), 500 (server error). Success is 201.