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

Request

  • Base URL
    https://api.tryhamsa.com
  • URL
    https://api.tryhamsa.com/v1/voice-agents/clone
  • Auth
    API key in header Authorization

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
    }
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.