Skip to main content
POST
Create Agent
Create a voice agent and automatically publish its first version.

Authentication

string
requerido
Organization API key. Keep it on your server or in a credential store.
Provide a valid voice ID and IANA time zone. Creation publishes version 1, so prepare the prompt before attaching a number, campaign, or widget.

Body

The first three fields are required; remaining fields are optional.
string
requerido
Internal name.
string
requerido
ID from List voices.
string
requerido
IANA time zone, such as America/Mexico_City.
string
In-call name.
string
Supported language code, such as en-US, es-ES, es-419, or multi (Spanish and English).
string
Conversation objective.
string
Instructions, up to 28,000 characters.
string
Outgoing webhook URL.
string
coffee-shop, convention-hall, summer-outdoor, mountain-outdoor, static-noise, or call-center.
number
API range 0.5–2; the app slider exposes a narrower range.
number
0–2.
number
0–2.
number
0–2.
number
0–1.
number
0.1–1.
string
Opening phrase, up to 240 characters.
number
0–5,000 milliseconds.
number
Requested maximum call duration in milliseconds, subject to plan limits.
string[]
Terms to improve recognition.
object[]
Extraction definitions with string, enum, boolean, or number type.
object[]
Tool definitions: booking, transfer_call, custom, end_call, or agent_swap. Use the schema for the selected tool type; changing an array can replace its configuration.

Example

Replace VOICE_ID with a current catalog ID.

Response

Successful creation returns HTTP 201 with statusCode and data. The identifier is data.id, not agent_id. See Get agent for response fields and List voices for voice IDs.