Update Agent
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Request
Agent language: English, Hindi, Tamil, Telugu, Bengali, Gujarati, Kannada, Malayalam, Marathi
Agent tone: professional, friendly, casual, formal
AI model: lai-premium-2, lai-premium-3, lai-premium-4
Voice & response settings
Agent prompt/instructions
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)
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)