v1

latestOpenAPI 3.0.1MIT2026-07-26104203277.0 KB

Clone a voice agent

Use this route to clone an existing agent. You can use it to clone one of the voice agents templates created by our experts!

post/v1/voice-agents/clone

Query parameters

voiceAgentIdstring required

Request body

agentNamestring

Response

Successful cloning of voice agent

successboolean
messagestring

Example response

{
  "data": {
    "outcomeResponseShape": {
      "type": "object",
      "properties": {
        "test": {
          "type": "number",
          "description": "Hello world from Hamsa AI!"
        }
      },
      "required": [
        "test"
      ]
    },
    "webhookUrl": "https://example.com/webhook",
    "webhookAuth": {
      "authKey": "Token",
      "authSecret": "Secret"
    },
    "llmConfig": {
      "provider": "OpenAI",
      "modelName": "GPT-4.1",
      "baseUrl": "https://api.custom-llm.com/v1",
      "apiKey": "sk-...",
      "temperature": 0.2
    }
  }
}