cURL
curl --request POST \ --url https://jwhite.tail8bf327.ts.net/api/v1/agents/{id}/duplicate \ --header 'x-api-key: <api-key>'
{ "success": true, "agent": { "agent_id": 124, "name": "Sales Support Agent (Copy)", "avatar_id": 1, "language": "en", "custom_greeting": "Welcome! How can I assist you today?", "context": "You are a helpful sales assistant.", "status": "active", "created_at": "2024-01-15T11:00:00Z" }, "message": "Agent duplicated successfully" }
Create a copy of an existing agent
Authorization: Bearer <jwt_token>
POST https://jwhite.tail8bf327.ts.net/api/v1/agents/123/duplicate Authorization: Bearer <jwt_token>
{ "error": "Agent not found" }
401 Unauthorized
403 Forbidden
404 Not Found
500 Internal Server Error