Create Agent
Create a new voice agent.
Required fields: name, start_flow, end_flow. Default AI model: lai-premium-2. If prompt is not provided, it will be auto-generated from the agent config.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Agent type: sales, support, custom
Industry sector (e.g. Real Estate, Finance & Banking, Healthcare, E-commerce & Retail)
AI model: lai-premium-2, lai-premium-3, lai-premium-4
Opening greeting message. Auto-generated if not provided.
Closing message. Auto-generated if not provided.
Custom agent description (required if agent_type=custom)
Agent language: English, Hindi, Tamil, Telugu, Bengali, Gujarati, Kannada, Malayalam, Marathi
Agent tone: professional, friendly, casual, formal
Voice gender: male or female
Custom pronunciation rules {word: pronunciation}
Voice & response settings
Custom agent prompt/instructions. Auto-generated if not provided.
Information the agent should collect during the call. List of items, each with: key (string — field name), type (text/number/email/phone), description (string — what to collect)
Company/brand name
Agent timezone (e.g. Asia/Kolkata)
Webhook configuration. Fields: url (string, required) — the endpoint URL to receive events. Optional: events (list of event names like call.completed, call.failed), headers (dict of custom headers)
List of custom API tool configurations the agent can call during conversations. Each item: api_name (string), api_url (string), method (GET/POST/PUT/DELETE), headers (list of {key, value}), query_params (list of {key, value, is_variable}), body (dict/string), content_type (application/json)
Pre-call data lookup configuration. Called at session start to fetch customer data. Required fields: api_name (string), api_url (string), method (GET/POST). Optional: enabled (bool), headers (list of {key, value, is_variable}), query_params (list of {key, value, is_variable}), path_params (list of {name, source}), body_template (dict), auth_type (bearer/api_key/basic), auth_token (string), timeout_seconds (int), retry_count (int)
Human handoff phone numbers. List of transfer targets, each with: name (string), number (string — phone number), country_code (string), category (string)
Additional languages (e.g. [‘Hindi’, ‘Spanish’])