Skip to main content
POST
/
api
/
agents
Create Agent
curl --request POST \
  --url https://api.example.com/api/agents \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "agent_name": "<string>",
  "agent_phone_number": "<string>",
  "voice_id": "<string>",
  "welcome_text": "<string>",
  "call_type": "INCOMING",
  "enabled": true,
  "tools": [
    "<unknown>"
  ],
  "save_stats": true,
  "server_type": "DEV",
  "provider_type": "EXOTEL",
  "llm_config_json": {},
  "audio_config_json": {},
  "call_settings_json": {},
  "analytics_config_json": {},
  "tools_config_json": {},
  "created_from_template_id": 123,
  "created_from_template_version": 123
}
'
[
  "<unknown>"
]

Body

application/json
prompt
string
required
agent_name
string
required
agent_phone_number
string
required
voice_id
string
required
welcome_text
string
required
call_type
enum<string>
required
Available options:
INCOMING,
OUTGOING
enabled
boolean
default:true
tools
any[] | null
save_stats
boolean
default:true
server_type
enum<string>
default:DEV
Available options:
LOCAL,
DEV,
QA,
PROD
provider_type
enum<string>
default:EXOTEL

Telephony provider types for call agents.

Available options:
EXOTEL,
PLIVO_CX,
PLIVO_L
llm_config_json
Llm Config Json · object
audio_config_json
Audio Config Json · object
call_settings_json
Call Settings Json · object
analytics_config_json
Analytics Config Json · object
tools_config_json
Tools Config Json · object
created_from_template_id
integer | null
created_from_template_version
integer | null

Response

Successful Response