Create Call Agent
Create a new agent for a workspace.
Headers
x-workspace-idstringrequiredWorkspace identifier for the API.
Request Body
namestringrequiredName of the agent being created.
ttsModelobjectrequiredText-to-Speech (TTS) configuration for the agent.
smartCallbackbooleandefault: falseEnable smart callback functionality for the agent.
maxAttemptsForSmartCallbacknumberdefault: 5Maximum number of callback attempts when smart callback is enabled.
gapBetweenEachAttemptForSmartCallbackarrayArray of time intervals between each callback attempt. Each item contains days and hours.
phoneNumberIdsarrayArray of phone number IDs to associate with the agent.
llmModelstringdefault: platform-llmLanguage model the agent uses to generate responses.
Defaults to platform-llm, the managed platform model. It is tuned for voice agents and kept current without any change to your configuration, and it is what agents created in the dashboard start on.
To pin a specific model instead, pass its id, for example gpt-4.1 or gemini-2.5-flash. The models on offer change over time, so call List Available Models for the current set rather than hardcoding one.
settingsobjectAdditional settings for the agent.
variablesobjectCustom variables to store for the agent.
Response Fields
_idstringUnique identifier for the newly created agent. Pass it as agent when you create a call flow to link the two. The agent then shows up inside that call flow and on the Phone Numbers page. An agent serves one call flow, so create a new agent for each flow.
workspaceIdstringWorkspace ID associated with the agent.
userIdstringUser ID of the agent creator.
namestringName of the agent.
ttsModelobjectText-to-Speech configuration for the agent.
providerstringTTS provider used by the agent.
voiceIdstringdefault: mistv2_WildflowerVoice ID used for generating speech. (e.g., mistv2_Brook, mistv2_Violet, mistv2_Wildflower)
languagestringLanguage code of the TTS voice.
elevenLabsApiKeystringEncrypted ElevenLabs API key (only present if provider is "11labs_byo").
llmModelstringLanguage Model used by the agent to generate responses.
smartCallbackbooleanWhether smart callback is enabled for the agent.
maxAttemptsForSmartCallbacknumberMaximum number of callback attempts.
gapBetweenEachAttemptForSmartCallbackarrayArray of time intervals between callback attempts.
phoneNumberIdsarrayArray of phone number IDs associated with the agent.
activeSessionsarrayArray of active sessions for the agent.
settingsobjectAdditional settings configured for the agent.
statusstringCurrent status of the agent (pending, ready, or error).
currentNodestringCurrent node or state within the agent's flow.
variablesobjectCustom variables stored for the agent.
createdAtstringTimestamp when the agent was created.
updatedAtstringTimestamp when the agent was last updated.
{
"name": "Customer Support Agent",
"ttsModel": {
"provider": "rime",
"voiceId": "mistv2_Wildflower",
"name": "Sophie",
"language": "en"
},
"llmModel": "platform-llm",
"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
}
}Last updated on