Create an agent
Creates an agent with status offline. Outbound campaigns can use the agent immediately. An inbound agent answers calls only after its status is set to active.
Requires the agents:write scope.
apiKeyX-API-Key<token>Your API key, from Settings → API access in the dashboard.
application/json- body
name*stringThe name the agent says on calls.
length <= 100prompt*stringWho the agent is and how it should handle the call.
length <= 20000voice_name*stringA voice_name from GET /voices.
language?stringA language from the voice catalog, such as hi-IN. Defaults to the voice's language; a multilingual voice (language_code: mul) has none, so set it, or the agent speaks English (India).
direction?string"outbound""outbound""inbound"greeting?stringOpening line
length <= 1000call_purpose?stringWhat a successful call achieves.
length <= 2000personality?stringHow the agent speaks. One of professional, friendly, empathetic, assertive, casual, calm, formal, energetic, patient or consultative. Any other value is used as a plain tone instruction.
"professional"friendly_name?stringLabel shown in the dashboard.
length <= 100use_case?string"default"tools?array<>Tools the agent may use. Empty (the default) means all tools.
kb_item_ids?array<>Knowledge-base items the agent answers from.
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<>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.
items <= 5The new 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 POST "https://example.com/agents" \ -H "Content-Type: application/json" \ -d '{ "name": "Neha", "prompt": "You are Neha from Acme Dental. Confirm tomorrow\'s appointment and offer to reschedule if needed.", "voice_name": "neha_chariot", "greeting": "Namaste, this is Neha calling from Acme Dental.", "call_purpose": "Confirm appointments", "tools": [ "take_message", "schedule_callback" ] }'{ "id": "8b8e3307-2c1a-4f6e-9a51-0d7c2b9e4f10", "name": "Neha", "friendly_name": "Clinic reminders", "direction": "outbound", "status": "offline", "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": 0, "created_at": "2026-10-01T09:12:44+00:00", "updated_at": "2026-10-03T11:02:10+00:00"}