ResoneraDocs
Agents

Create an agent

POST
/agents

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.

Authorization

apiKey
headerX-API-Key<token>

Your API key, from Settings → API access in the dashboard.

Request Body

application/json
  1. body
name*string

The name the agent says on calls.

Lengthlength <= 100
prompt*string

Who the agent is and how it should handle the call.

Lengthlength <= 20000
voice_name*string

A voice_name from GET /voices.

language?string

A 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
Default"outbound"
Value in"outbound""inbound"
greeting?string

Opening line

Lengthlength <= 1000
call_purpose?string

What a successful call achieves.

Lengthlength <= 2000
personality?string

How 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.

Default"professional"
friendly_name?string

Label shown in the dashboard.

Lengthlength <= 100
use_case?string
Default"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.

Lengthlength <= 32
recording_purpose?string

What the recording notice at the start of a campaign call says recordings are for. quality_training means your own staff training.

Default"quality"
Value in"quality""quality_training"
handover_end_action?string

After 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).

Default"resume"
Value in"resume""end"
handover_resume_prompt?|

With resume: what the agent should do when it takes the call back.

Lengthlength <= 500
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.

Itemsitems <= 5

Response Body

The new agent.

application/json
  1. response
id?string
Formatuuid
name?string

The name the agent says on calls.

friendly_name?string

Label shown in the dashboard. Empty means name is used.

direction?string
Value in"inbound""outbound"
status?string
Value in"active""paused""offline"
language?string
voice_name?string
voice_id?|
Formatuuid
prompt?string
greeting?string
call_purpose?string
personality?string
use_case?string
tools?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?string

What 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).

Value in"quality""quality_training"
handover_end_action?string

After 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).

Value in"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?boolean
calls_handled?integer
created_at?string
Formatdate-time
updated_at?string
Formatdate-time
curl -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"}