cURL
curl --request POST \ --url https://dev.voice.ai/api/v1/agent/init-agent \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "agent_template": "<string>", "name": "<string>" } '
{ "agent_template": { "prompt": "<string>", "greeting": "<string>", "llm_temperature": 0.7, "llm_model": "gemini-2.5-flash-lite", "tts_min_sentence_len": 20, "tts_params": { "voice_id": "<string>", "temperature": 1, "top_p": 0.8 }, "min_silence_duration": 0.55, "min_speech_duration": 0.1, "user_silence_timeout": 10, "max_call_duration_seconds": 900, "allow_interruptions": true, "allow_interruptions_on_greeting": false, "min_interruption_words": 1, "auto_noise_reduction": true, "allow_agent_to_end_call": false, "allow_agent_to_skip_turn": false, "min_endpointing_delay": 0.5, "max_endpointing_delay": 3, "vad_activation_threshold": 0.6, "phone_number": "<string>", "mcp_servers": [ { "name": "<string>", "url": "<string>", "description": "<string>", "auth_type": "none", "auth_token": "<string>", "headers": {} } ] }, "available_types": [ "<string>" ], "description": "Pre-configured agent template based on selected type" }
Create an agent from a saved template.
Bearer token authentication. Use your API key as the bearer token. Format: Authorization: Bearer
Successful Response
Show child attributes