Skip to main content
POST
/
api
/
v1
/
agent
/
init-agent
Initialize Agent From Template
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,
      "response_format": "mp3"
    },
    "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": [
      {}
    ],
    "category": "business",
    "playground_visibility": "unlisted"
  },
  "available_types": [
    "<string>"
  ],
  "description": "Pre-configured agent template based on selected type"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your API key as the bearer token. Format: Authorization: Bearer

Body

application/json
agent_template
string | null
name
string | null

Response

Successful Response

agent_template
Agent Template · object
required
available_types
string[]
required
description
string
default:Pre-configured agent template based on selected type