Update an existing agent
Partial update — only fields included in the request body are modified; omitted fields keep their current values. Use this to tweak prompts, swap voices, attach/detach knowledge bases or update function definitions without recreating the agent.
Request
- Base URL: https://api.call2me.app
- URL: https://api.call2me.app/v1/agents/{agent_id}
- Auth: HTTP bearer
Path parameters
Request body
Response
The updated agent.
Human-readable name for the agent
Voice identifier (e.g., 'openai-nova', 'azure-tr-emel')
BCP-47 language code
Voice playback speed
How quickly agent responds (0=slow, 1=immediate)
How easily user can interrupt (0=hard, 1=easy)
Enable 'uh-huh', 'hmm' responses
How often to backchannel (0=never, 1=always)
Custom backchannel words (empty = use defaults for language)
First message when call starts (used when begin_message_mode='static')
'static': use begin_message as-is, 'dynamic': LLM generates greeting based on system prompt and call context
Send reminder after this much silence (ms)
Max reminder messages before ending call (0=disabled)
End call after this much silence (ms)
Maximum call duration (ms)
Enable call recording
Allow exporting this agent's calls as vCon containers
URL for webhook events
Transfer targets: [{'name': 'Support', 'type': 'phone|sip|agent|external|queue', 'value': '...'}]
Fields to extract from call (e.g., [{'name': 'customer_name', 'type': 'string', 'description': 'Customer name'}])
LLM model for post-call extraction
Actions triggered after call analysis. Format: [{'type': 'schedule_call', 'condition': 'callback_requested == true', 'config': {'delay_minutes': 60}}, {'type': 'webhook', 'condition': 'sale_completed == true', 'config': {'url': 'https://...'}}, {'type': 'schedule_call', 'condition': 'appointment_time != null', 'config': {'use_field': 'appointment_time'}}] Types: schedule_call, webhook, tag_contact
Knowledge base IDs linked to this agent for RAG
Number of chunks to retrieve from knowledge base (1-10)
Minimum similarity score for KB results (0.0-1.0)
Background ambient sound during calls
End call message mode: 'static' for fixed message, 'dynamic' for AI-generated based on conversation
Static goodbye message (used when end_call_mode='static'). If empty, uses default localized message.
Prompt for generating dynamic goodbye message (used when end_call_mode='dynamic'). Example: 'Konuşmayı özetle ve nazik bir veda mesajı söyle.'
Enable voicemail/answering machine detection
Time to wait for human response after greeting (ms). If no speech detected, assume voicemail.
Action when voicemail detected: 'hangup' = end call, 'leave_message' = play message and hang up
Message to leave on voicemail (used when voicemail_action='leave_message')
Custom metadata for the agent
Unique agent identifier
Owner user ID
Agent status: active or inactive
Creation timestamp
Last update timestamp
Public-facing card metadata (emoji, title, order, visible) for end-user agent pickers.
Changes
No recorded changes to this operation across all 1 revision of this API.