API key used for authenticating requests to the API.
Workspace identifier for the API.
Request Body
Name of the agent being created.
Text-to-Speech (TTS) configuration for the agent. TTS provider. Must be one of the following: openai, rime, elevenlabs, 11labs_byo, google.
The voice ID used for generating speech. e.g for Trillet Voices,
“mistv2_Wildflower” - Alt Female, Smart
“mistv2_Brook” - Male, Friendly
“mistv2_Violet” - Female, Professional
language
string
default: "en"
required
Language code (e.g., en, fr).
ElevenLabs API key (required only when provider is “11labs_byo”). This will be encrypted and stored securely.
Enable smart callback functionality for the agent.
maxAttemptsForSmartCallback
Maximum number of callback attempts when smart callback is enabled.
gapBetweenEachAttemptForSmartCallback
Array of time intervals between each callback attempt. Each item contains days and hours. Show Array Item Properties
Number of days to wait before the next attempt.
Number of hours to wait before the next attempt.
Array of phone number IDs to associate with the agent.
llmModel
string
default: "gpt-4o-mini"
required
Language Model to be used by the agent to generate responses. Must be one of: gpt-4o-mini, gpt-4o-enterprise, gpt-4.1, gpt-4.1-mini, gemini-2.5-flash-preview-native-audio-dialog, gemini-2.5-flash, gemini-live-2.5-flash-preview, geminiaudiopipeline:gemini-2.5-flash-preview-native-audio-dialog, gemini-2.0-flash-live-001, gpt-5.
Additional settings for the agent. Value between 0 and 1 that determines how fast the TTS narrates text.
Value between 0 and 1 that adjusts the TTS volume.
Value between 0 and 1 for controlling the creativity of the LLM.
Custom variables to store for the agent.
Response Fields
Unique identifier for the newly created agent.
Workspace ID associated with the agent.
User ID of the agent creator.
Text-to-Speech configuration for the agent. TTS provider used by the agent.
voiceId
string
default: "mistv2_Wildflower"
Voice ID used for generating speech. (e.g., mistv2_Brook, mistv2_Violet, mistv2_Wildflower)
Language code of the TTS voice.
Encrypted ElevenLabs API key (only present if provider is “11labs_byo”).
Language Model used by the agent to generate responses.
Whether smart callback is enabled for the agent.
maxAttemptsForSmartCallback
Maximum number of callback attempts.
gapBetweenEachAttemptForSmartCallback
Array of time intervals between callback attempts.
Array of phone number IDs associated with the agent.
Array of active sessions for the agent.
Additional settings configured for the agent.
Current status of the agent (pending, ready, or error).
Current node or state within the agent’s flow.
Custom variables stored for the agent.
Timestamp when the agent was created.
Timestamp when the agent was last updated.
{
"name" : "Customer Support Agent" ,
"ttsModel" : {
"provider" : "rime" ,
"voiceId" : "mistv2_Wildflower" ,
"name" : "Sophie" ,
"language" : "en"
},
"llmModel" : "gpt-4o" ,
"type" : "voice" ,
"smartCallback" : true ,
"maxAttemptsForSmartCallback" : 3 ,
"gapBetweenEachAttemptForSmartCallback" : [
{ "days" : 1 , "hours" : 2 },
{ "days" : 2 , "hours" : 0 },
{ "days" : 3 , "hours" : 6 }
],
"settings" : {
"speed" : 0.8 ,
"volume" : 1 ,
"temperature" : 0.7
}
}