Skip to main content
POST
Create agent

Authorizations

X-Api-Key
string
header
required

The API Key created in Rounded Studio.

Body

application/json
name
string
required

The name of the agent

Required string length: 1 - 100
Example:

"My first agent"

language
enum<string>
required

The language of the agent, expressed as a BCP 47 language tag by using its ISO 639-1 code (e.g. 'en', 'fr', 'es'). For French, regional variants using a region code from ISO 3166-1 are also supported (e.g. 'fr-BE').

Available options:
en,
fr,
fr-FR,
fr-BE,
fr-CA,
es,
de,
it,
nl,
pl,
ar,
pt,
el,
hr,
zh
Examples:

"en"

"fr"

"fr-BE"

"es"

initial_message
string | null
default:Bonjour ! Que puis-je faire pour vous ?

The initial message of the agent

Maximum string length: 1000
Example:

"Hello, how can I help you today?"

initial_message_delay
number | null
default:0

The delay of the initial message in seconds

Required range: 0 <= x <= 5
Example:

0

max_call_duration
number | null
default:1800

The maximum duration of the call in seconds

Example:

300

presence_check_phrases
string[] | null

A series of phrases that the agent will say to re-engage the interlocutor after a period of silence. The phrases should be in the same language as the agent.

Example:
presence_check_idle_threshold
integer | null
default:15

The number of seconds of silence after which the agent will say the presence check phrases

Required range: 3 <= x <= 120
Example:

10

presence_check_max_times
integer | null
default:10

The maximum number of times the agent will say the presence check phrases

Required range: 1 <= x <= 100
Example:

1

base_prompt
string | null

The base prompt of the agent

Maximum string length: 100000
Example:

"You are a helpful assistant"

voice
AgentCreateOpenAIVoiceConfigurationApiRequest · object

The voice of the agent

states
AgentCreateStatesApiRequest · object[] | null
initial_state_name
string | null
llm
AgentCreateLLMConfigurationApiRequest · object | null
transcriber
AgentCreateTranscriberConfigurationApiRequest · object | null
secure_recording_urls
boolean | null
default:true

Whether to secure the recording URLs

Example:

true

interruptions
boolean | null
default:false

Whether to allow interruptions

Example:

true

interruptions_sensitivity
enum<string> | null
default:high

The sensitivity of the interruptions

Available options:
high,
medium,
low
Example:

"high"

webhook_url
string | null

The webhook URL of the agent

Example:

"https://webhook.site/123e4567-e89b-12d3-a456-426614174000"

webhook_subscriptions
enum<string>[] | null

The webhook subscriptions of the agent

Available options:
event_variable_value_updated,
event_all_variables_resolved,
event_call_status_updated,
event_call_recording_status_updated,
event_call_answer_type_updated,
event_task_transition,
event_transcript,
event_transcript_complete,
event_phone_call_connected,
event_phone_call_ended,
event_phone_call_did_not_connect,
event_web_call_connected,
event_web_call_ended,
event_recording,
event_action,
event_synthesizer_consumption,
event_post_call,
event_pipedream_connection
Example:
custom_vocabulary
string[] | null

The custom vocabulary of the agent, used mainly to improve transcription accuracy.

Example:

Response

Successfully created agent

message
string
required
data
AgentGetApiResponseData · object
required
error
ApiResponseError · object | null
Example:
status
integer
default:200

HTTP status code of the response.