Agents
Update Agent
Updates an existing agent
PUT
Path Parameters
The unique identifier of the agent (UUID format)
Request Body
All fields are optional. Only include the fields you want to update.Basic Information
Display name of the agent (1-255 characters)
Description of what the agent does
Initial message the agent says when call starts
System prompt defining agent behavior and personality
Type of agent configuration.Supported values:
simple, advanced, custom, appointment_scheduler, receptionist, message_takerAgent activation status.Supported values:
active- Agent is available to receive callsinactive- Agent is temporarily disabledcancelled- Agent is permanently disabledpending- Agent is pending activation
AI/Voice Model Configuration
AI model used for the agent.Supported values:
gpt-4.1 (recommended), gpt-4.1-mini, gpt-4o, gpt-4o-miniVoice model for real-time speech
Speech-to-text model.Supported values:
deepgramText-to-speech model.Supported values:
cartesia, minimaxVoice configuration settings. Structure varies based on Cartesia voices also accept two optional fields:
Most English Cartesia voices do not accept For MiniMax:Advanced Voice Timing (optional, applies to all TTS models):
Example with advanced timing:
ttsModel:For Cartesia:| Property | Type | Description |
|---|---|---|
model | string | Cartesia TTS model (e.g. sonic-3). When set, must match the model registered for the selected voice_id. |
language | string | Locale passed to Cartesia TTS (e.g. es). When set, must match the language registered for the selected voice_id. |
model or language overrides. Non-English voices (e.g. Spanish) require both:| Property | Type | Default | Description |
|---|---|---|---|
min_endpointing_delay | number | 0.1 | Seconds to wait after the caller stops speaking before the agent responds. |
max_endpointing_delay | number | 2.0 | Maximum seconds to wait when the caller pauses mid-sentence. |
vad_min_silence_duration | number | (system default) | Minimum silence duration in seconds for Voice Activity Detection. Omit to use the system default. |
Call Features
Whether SIP call transfer is enabled. Supports:
- SIP extensions:
sip:extension@hostname - US phone numbers: Automatically formatted to
tel:+1XXXXXXXXXX
Whether the agent can send emails during or after calls
Instructions for the agent on how and when to use the email tool
Whether to enable answering machine / voicemail detection
Whether to enable echo detection during calls
Enable call recording. Recordings are saved to cloud storage and accessible via the Call Logs API.
Rules and conditions for call transfers. Describes when and where the agent should transfer calls.Example:
"Transfer to +15551234567 if the caller asks for billing support. Transfer to +15559876543 for technical issues."Array of email addresses used for notifications and the email tool.Example:
["[email protected]", "[email protected]"]UUID of the email server to use for this agent. Must belong to the same account. Pass
null to revert to the account’s default email server.Use the List Email Servers endpoint to retrieve available IDs.Localization
Agent language for speech recognition and responses.Supported values:
en-US- English (US)es-US- Spanish (US)multi- Multilingual (English, Spanish, French, German, Hindi, Russian, Portuguese, Japanese, Italian, Dutch)
Agent timezone in IANA format. Used for date/time operations and calendar scheduling.Example:
"America/New_York", "Europe/London", "Asia/Tokyo"Knowledge Base
Array of URLs the agent can reference for knowledge. The content at these URLs is ingested and made available to the agent during conversations.Example:
["https://example.com/faq", "https://example.com/pricing"]Business (Google Place)
Google Place ID linking the agent to a Google Business Profile listing. The platform fetches the listing’s details (hours, location, phone, website, services, ratings) and the agent uses them as verified facts when answering callers.
- Set to a Place ID to link (or relink) the agent’s business.
- Set to
nullor""to unlink. - Changing or clearing the id also clears the cached listing data (
google_place_data,google_place_context,google_place_fetched_at), so details from the previously linked business are never served while the new listing is fetched. Re-sending the already-stored id is a no-op and keeps the cache.
"ChIJVS6XxJPFU4gRoE8c8ql2lCQ"Warm Transfer
Enable warm transfer routing for this agent.
Plain-language rules for when and where to warm transfer. Example:
"If the caller asks for billing, confirm first and warm transfer to pbx:1234."Public URL of the hold-music file played during warm transfer. The easiest way to set this is Upload Hold Music, which saves the URL for you. Leave empty for built-in hold music.
Whether the original caller’s number is passed to the transfer destination. Defaults to
true.Pronunciations
Custom pronunciation rules for specific words and names in IPA format. Replaces the entire pronunciations list for the agent.Each entry is an object with:
word— The word or name (1–100 characters)phonemes— The IPA phoneme string
[] to clear all pronunciation rules.Example:Advanced Configuration
General configuration object.Common properties:
| Property | Type | Description |
|---|---|---|
enable_recording | boolean | Enable call recording |
user_timezone | string | IANA timezone (e.g., America/New_York) |
inactivity_timeout | number | Seconds before inactivity prompt |
ambient_type | string | Type of ambient background audio |
ambient_volume | number | Volume level for ambient audio |
thinking_sounds_enabled | boolean | Enable thinking/processing sounds during pauses |
thinking_volume | number | Volume level for thinking sounds |
thinking_clip_id | string | Sound clip to play while the agent is thinking. KEYBOARD_TYPING (default) or KEYBOARD_TYPING2 |
background_audio_enabled | boolean | Enable background audio during calls |
summary_context | string | Additional instructions for the AI-generated call summary. Use this to tell the summary what to focus on or what data to extract (e.g., "Focus on customer complaints. Extract any mentioned order numbers."). |
Extensions configuration for webhooks and MCP servers.Webhook structure:MCP server objects (
mcp_servers):Same request validation as Create Agent — MCP request body: name and url are both required on each entry; transport_type, auth_headers (array of {key, value}), and initialization_options (object) are optional. The platform transforms each entry on write (name → connection_name, url → mcp_endpoint_url) so the stored shape differs from the request shape — see Get Agent — Stored MCP Connection Shape.Webhook conditions:before_call- Execute before the agent answersduring_call- Execute while call is activeafter_call- Execute after call ends
Integrations
Third-party integration configurations. Supported provider keys: Provider fields (required when creating a new provider entry; partial updates only need to leave the stored object valid):
Behavior notes:
modmed, googleCalendar, outlookCalendar, twilio, netsapiens. Unknown provider keys are stored as-is.Update semantics — unlike extensions (which is a full replace), integrations uses a field-level merge per provider:- Only the fields you send change; omitted fields and omitted providers are preserved.
- Set a field to
nullto clear that field. - Set a whole provider to
nullto remove the provider.
fromNumber, clears its testToNumber, and removes the ModMed integration — everything else is untouched:| Provider | Required fields | Optional fields |
|---|---|---|
twilio | accountSid, authToken, fromNumber | testToNumber, connected_at |
modmed | firm_url_prefix, username, password, environment (sandbox, practice_sandbox, production) | tokens, connected_at |
googleCalendar | access_token, expires_at | refresh_token, email, selected_calendar_id, selected_calendar_name, timezone |
outlookCalendar | access_token, expires_at | refresh_token, email, selected_calendar_id, selected_calendar_name, timezone |
netsapiens | url, username, password, domain, client_id, client_secret, extension, access_token | api_version (v1, v2), refresh_token, user_scope, connected_at |
- Configs are stored as-is — credentials are not validated against the provider. ModMed/NetSapiens entries written without valid tokens will not function at runtime until tokens are supplied or the integration is connected via the Dashboard.
- Unlike the Dashboard flow, writing
twiliohere does not auto-create thesend_sms_via_twiliotool inextensions— add the tool yourself if you want the agent to send SMS. - Secret fields (passwords,
authToken,client_secret, access/refresh tokens) are write-only: they are accepted on PUT but never returned by any agent endpoint. The merge semantics make this safe — a GET → modify → PUT round-trip won’t wipe stored secrets.
MCP can be set in the Dashboard or via
extensions.mcp_servers here (see Create Agent — MCP request body); persisted shape on read is documented under Get Agent.MCP servers are auto-tested on save. Each entry in
extensions.mcp_servers is tested when you update the agent: reachable servers are stored with a fingerprint and discovered tools (green Connected badge in the Portal); unreachable servers are still stored but without a fingerprint (yellow Not tested badge), and the response includes a non-fatal warnings array ([{ "connection_name": "...", "message": "..." }]). Re-testing on update means an MCP server you keep in the payload retains its verified status instead of being reset.To validate a configuration before assigning it, use Test MCP Connection.Secrets are never returned. Responses from this and every other agent endpoint omit secret fields: integration passwords,
twilio.authToken, netsapiens.client_secret, calendar access/refresh tokens, and the SIP password inside sip_registration_data. Non-secret metadata (provider keys, usernames, accountSid, connected_at, calendar names) is still returned so you can see what’s configured.Update Behavior
- Only provided fields are updated; omitted fields retain their current values
- The
updated_attimestamp is automatically set to the current time - The
providerfield cannot be changed after creation
