Skip to main content
POST
Create a new inbound agent

Authorizations

x-api-key
string
header
required

API Key for authentication

Body

application/json
phoneNumber
string
required

Phone number for the inbound agent

Example:

"+1234567890"

agentName
string
required

Name of the agent

Example:

"Agent Name"

task
string
required

Task or prompt for the agent

Example:

"Task description"

selectedVoice
string
required

Voice for the agent

Example:

"en-US-Standard-A"

background_track
string
required

Background track for the agent

Example:

"none"

noise_cancellation
boolean
required

Whether to enable noise cancellation

Example:

false

model
string
required

AI model to use

Example:

"gpt-4"

max_duration
number
required

Maximum duration in seconds

Example:

300

interruptionThreshold
number
required

Interruption threshold

Example:

1000

firstSentence
string
required

First sentence to say

Example:

"Hello!"

selectedLanguage
string
required

Language for the agent

Example:

"en"

voice_settings
object
required

Voice settings

Example:
waitForGreeting
boolean
required

Whether to wait for greeting

Example:

true

temperature
number
required

Temperature for AI responses

Example:

0.7

pathwayID
string
required

Pathway ID

Example:

"pathway-123"

tools
string[]
required

Tools to use

Example:
knowledgeName
string
required

Name of the knowledge base

Example:

"Knowledge base name"

knowledgeBases
string[]
required

Knowledge base data

Example:
metadata
object
required

Additional metadata

Example:
transferPhoneNumber
object[]
required

Transfer phone numbers

Example:
appointmentAgent
boolean
required

Whether this is an appointment agent

Example:

true

calendarID
string
required

Calendar ID

Example:

"cal-123"

calendarName
string
required

Calendar name

Example:

"My Calendar"

questionsData
object[]
required

Questions for the agent

Example:
customTool
string[]
required

Custom tools

Example:
inboundCustomTool
string[]
required

Custom tools

Example:
from
string
required

Phone number to call from

Example:

"+1234567890"

block_interruptions
boolean
required

Whether to block interruptions

Example:

false

keywords
string[]
required

Keywords to boost in transcription

Example:
pronunciationGuide
string[]
required

Pronunciation guide for specific words

Example:
timezone
string
required

Timezone for the call

Example:

"America/Los_Angeles"

request_data
object
required

Request data available to the AI agent during the call

Example:
start_time
string
required

Scheduled start time for the call

Example:

"2024-03-20 12:00:00 -05:00"

voicemail_message
string
required

Message to leave on voicemail

Example:

"Please leave a message after the beep"

voicemail_action
enum<string>
required

Action to take when voicemail is detected

Available options:
hangup,
leave_message,
ignore
Example:

"hangup"

retry
object
required

Retry configuration for voicemail calls

Example:
record
boolean
required

Whether to record the call

Example:

true

webhook_events
string[]
required

Events to stream to webhook

Example:
citation_schema_id
string
required

Citation schema ID for post-call analysis

Example:

"dcad76eb-57b6-4be6-922f-8a5a95e2ffrt"

analysis_preset
string
required

Analysis preset UUID

Example:

"a0f0d4ed-f5f5-4f16-b3f9-22166594d7a7"

answered_by_enabled
boolean
required

Whether to enable answered-by detection

Example:

true

available_tags
string[]
required

Available disposition tags

Example:
geospatial_dialing
string
required

Geospatial dialing pool UUID

Example:

"bd039087-decb-435a-a6e3-ca1ffbf89974"

precall_dtmf_sequence
string
required

DTMF sequence to play before call starts

Example:

"1234567890*#w"

pool_id
string
required

Pool ID

Example:

"#1234-5678-9012-3456"

memory_id
string

UUID of the memory to associate with this agent

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

webhook_config
object

Webhook configuration

get_data
object

Get data configuration

Response

201

Agent created successfully