Skip to main content
POST

Create Agent

Create a new voice agent with specified configuration, voice settings, and behavior parameters. The agent will be created in draft status and can be published later.

Endpoint

Path parameters

None

Request headers

string
required
Bearer token for authentication. Format: Bearer talq_your_environment_token_here
string
required
Must be set to application/json

Request body

string
required
Agent label (max 255 characters)
string
Agent description
string
required
Agent name (max 255 characters)
string
required
Agent language code. Supported values: pt-BR, pt-PT, en-US, en-CA, es-ES, fr-FR, de-DE, it-IT, nl-NL, ja-JP, ko-KR, zh-TW.
string
Initial message the agent will say. Optional.
string
required
How easily the agent allows the caller to interrupt. Options: low, medium, high.
string
required
How aggressively the agent detects end-of-utterance. Max 255 characters.
string
required
IVR navigation behavior for outbound calls that hit interactive menus. Max 255 characters.
number
required
Conversation playback speed multiplier. Range: 0.13.0.
integer
required
Delay in seconds before the agent says the initial message. Range: 060.
boolean
required
When true, the agent asks “Are you still there?” after the idle timeout instead of ending the call.
integer
required
Seconds of caller silence before triggering the idle behavior. Range: 160.
integer
Maximum number of idle re-prompts before ending the call. Range: 110. Optional.
integer
Hard limit on call duration in seconds. Range: 13600. Optional.
boolean
When true, the agent says a closing message before terminating a call that hits max_call_duration_seconds. Optional.
integer
Seconds of total inactivity before the agent gives up entirely. Range: 5120. Optional.
integer
Idle threshold to use before the agent has said its initial message (handles cases where the line opens but the caller doesn’t speak). Range: 160. Optional.
integer
Maximum number of initial idle prompts before terminating. Range: 010. Optional.
number
required
Sampling temperature for the language model. Range: 02. Lower values make responses more deterministic.
boolean
required
Whether to record calls handled by this agent.
string
required
Call direction. Options: inbound, outbound.
string
required
Who speaks first. Options: agent, user.
array
Array of phone number UUIDs to assign to this agent at creation. Use List Phone Numbers to retrieve available IDs. Can also be set later via Update Agent Calling.

Example requests

Response

Success Response (201 Created)

Error responses

Validation Error (422)

Unauthorized Error (401)

Too Many Requests (429)