Update an agent
Updates the fields you send. Other fields are unchanged. Changes apply from the agent's next call. A field sent as null is rejected unless its description states that null clears it.
Requires the agents:write scope.
apiKeyX-API-Key<token>Your API key, from Settings → API access in the dashboard.
agent_id*stringThe agent's id.
uuidapplication/json- body
Any field from Create an agent, plus status. Only the fields you send change.
name?stringlength <= 100prompt?stringlength <= 20000voice_name?stringlanguage?stringdirection?string"outbound""inbound"greeting?stringlength <= 1000call_purpose?stringlength <= 2000personality?stringfriendly_name?stringlength <= 100use_case?stringtools?array<>kb_item_ids?array<>custom_tool_ids?array<>Your custom tools the agent can call. Replaces the whole list.
skill_ids?array<>Skills the agent can use. Replaces the whole list.
transfer_to?|The number the transfer_call tool rings: any common format, stored as E.164; a number without a country code is taken as Indian. null or "" removes it, and the agent then takes a message instead of transferring.
length <= 32recording_purpose?stringWhat the recording notice at the start of a campaign call says recordings are for. quality_training means your own staff training.
"quality""quality""quality_training"handover_end_action?stringAfter a person who took over the call leaves: resume (the agent takes the call back) or end (the agent says a closing line and hangs up).
"resume""resume""end"handover_resume_prompt?|With resume: what the agent should do when it takes the call back.
length <= 500end_scenarios?array<>|Replaces the whole list. Send back the id of each situation you keep, so past calls still point at it. [] or null removes them all.
items <= 5status?stringactive puts an inbound agent live. Your plan may limit how many agents are active at once.
"active""paused""offline"The updated agent.
application/json- response
id?stringuuidname?stringThe name the agent says on calls.
friendly_name?stringLabel shown in the dashboard. Empty means name is used.
direction?string"inbound""outbound"status?string"active""paused""offline"language?stringvoice_name?stringvoice_id?|uuidprompt?stringgreeting?stringcall_purpose?stringpersonality?stringuse_case?stringtools?array<>Tools the agent may use. Empty means all tools.
kb_item_ids?array<>custom_tool_ids?array<>Your custom tools the agent can call.
skill_ids?array<>Skills the agent can use.
transfer_to?|The number the transfer_call tool rings
recording_purpose?stringWhat the recording notice at the start of a campaign call says recordings are for: quality ("for quality purposes") or quality_training ("for quality and training purposes", meaning your own staff training).
"quality""quality_training"handover_end_action?stringAfter a person who took over the call leaves: resume (the agent takes the call back) or end (the agent says a closing line and hangs up).
"resume""end"handover_resume_prompt?|With resume: what the agent should do when it takes the call back, e.g. "Ask if there is anything else".
end_scenarios?array<>Situations in which the agent politely ends the call early, at most 5. The agent checks once with the caller before ending. A call ended this way keeps end_reason: completed, is billed per minute like any other call, and records the situation in end_scenario.
is_trained?booleancalls_handled?integercreated_at?stringdate-timeupdated_at?stringdate-timecurl -X PATCH "https://example.com/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "greeting": "Hi, this is Neha from Acme Dental.", "status": "active" }'{ "id": "8b8e3307-2c1a-4f6e-9a51-0d7c2b9e4f10", "name": "Neha", "friendly_name": "Clinic reminders", "direction": "outbound", "status": "active", "language": "hi-IN", "voice_name": "neha_chariot", "voice_id": "ed7ddfaf-20fa-49f8-ab9e-afd4a2437d3a", "prompt": "You are Neha from Acme Dental. Confirm tomorrow's appointment...", "greeting": "Namaste, this is Neha calling from Acme Dental.", "call_purpose": "Confirm appointments", "personality": "friendly", "use_case": "default", "tools": [ "take_message", "schedule_callback" ], "kb_item_ids": [], "is_trained": true, "calls_handled": 12, "created_at": "2026-10-01T09:12:44+00:00", "updated_at": "2026-10-03T11:02:10+00:00"}