Clone agent
Creates a copy of the agent with all its settings: instructions, outputs, tools, language_id, voice_id, languages, stt_language_mode, default_voice_id, LLM, knowledge base, memory, transfer, webhook and call settings. The copy keeps the outgoing number (out_did) and has no inbound number (in_did is null), because a number answers for one agent only. Use it to create one agent per workflow from a template agent, then PATCH the copy’s instructions or other settings.
Authentication
API key for authentication. Example: raya_ABCD1234567890abcdef
Path parameters
Request
Name of the copy. Defaults to “<agent name> (copy)”.
Response
Instructions for how to populate output_fields after a call.
Array of key-description pairs. Each item has key and description only (no extra properties).
Agent arguments as a JSON object (e.g. {“contact_name”: “John”, “order_id”: “123”}). Not an array.
Inbound DID number (read-only; for reference)
Webhook URL for callbacks (sent on call completed or call failure). See Webhooks for payload format.
When true, the voice agent may use live call transfer to a human (India only). Default true.
Call language UUID. See /documentation/agent-language-options.
Voice UUID. See /documentation/agent-voice-options.
Languages the agent speaks (ISO 639-1); the first is the starting language. Empty for a single-language agent.
How the caller’s language is detected: auto (every turn), lock (first detected language, code-mix on) or handoff (lock, code-mix off).
Starting voice of a composite voice_id, or null.
Function tools ({ "llm_tools": [...] }). Empty array when none configured.
Minimum user speech duration (seconds) before interruption is allowed.
Notes about the request, present only when there are any: an inbound number moved from another agent, or more than 4 languages. The change itself was applied.

