curl -X POST https://api.voicy.co/v1/duplicate-agent/550e8400-e29b-41d4-a716-446655440001 \ -H "Authorization: Bearer voicy_sk_live_xxx" \ -H "Content-Type: application/json" \ -d '{"agent_name": "My Agent Copy"}'
Copy
{ "agent_id": "660e8400-e29b-41d4-a716-446655440002", "agent_name": "My Agent Copy", "account": { "id": "550e8400-e29b-41d4-a716-446655440099", "name": "Acme Corp" }, "voice_id": "openai:sage", "language": "en", "begin_message": "Hello! How can I help you today?", "agent_prompt": "You are a helpful customer support agent...", "begin_message_mode": "static", "prompt_text_direction": "ltr", "vars_provided": [ { "name": "customer_name", "type": "string", "default_value": null, "description": "Customer's full name" } ], "vars_extracted": [ { "name": "appointment_date", "type": "string", "description": "Preferred appointment date", "required": true } ], "version": 1, "deployed_at": null, "agent_type": "singlePrompt", "notification_emails": []}
Agents
Duplicate Agent
Create a copy of an existing agent with all its configuration
POST
/
v1
/
duplicate-agent
/
{agent_id}
Copy
curl -X POST https://api.voicy.co/v1/duplicate-agent/550e8400-e29b-41d4-a716-446655440001 \ -H "Authorization: Bearer voicy_sk_live_xxx" \ -H "Content-Type: application/json" \ -d '{"agent_name": "My Agent Copy"}'
Copy
{ "agent_id": "660e8400-e29b-41d4-a716-446655440002", "agent_name": "My Agent Copy", "account": { "id": "550e8400-e29b-41d4-a716-446655440099", "name": "Acme Corp" }, "voice_id": "openai:sage", "language": "en", "begin_message": "Hello! How can I help you today?", "agent_prompt": "You are a helpful customer support agent...", "begin_message_mode": "static", "prompt_text_direction": "ltr", "vars_provided": [ { "name": "customer_name", "type": "string", "default_value": null, "description": "Customer's full name" } ], "vars_extracted": [ { "name": "appointment_date", "type": "string", "description": "Preferred appointment date", "required": true } ], "version": 1, "deployed_at": null, "agent_type": "singlePrompt", "notification_emails": []}
Create a complete copy of an existing agent, including all its configuration, variables, and prompts.
The new agent will have a fresh ID and start at version 1.