Create Agent
Creates a new AI Agent in the specified sub-account.
https://api.vantaxai.com/v1/agentsOnly `name` is required. Every other field has a sensible default — you can fully configure voice, model, knowledge base, calendar, and call behavior at creation time or update later.
Headers
AuthorizationstringrequiredBearer authentication with your secret API key.
example: Bearer vx_live_3fa9c2…
Content-TypestringrequiredMust be application/json for requests with a body.
example: application/json
Body Parameters
namestringrequiredDisplay name of the Agent.
example: Front Desk Agent
sub_account_idstringrequiredSub-account that will own the Agent.
example: sub_8a1f4c2e
descriptionstringoptionalInternal description of the Agent's purpose.
system_promptstringoptionalThe Agent's core instructions / persona.
voice_idstringoptionalVoice used for phone calls. See List Voices.
example: voice_aria
knowledgebase_idstringoptionalKnowledge base the Agent can reference.
calendar_idstringoptionalDefault calendar for booking appointments.
ai_modelstringoptionalLLM powering the Agent.
gpt-4ogpt-4o-miniclaude-3-5-sonnetexample: gpt-4o
temperaturenumberoptionalSampling temperature 0–2. Defaults to 0.7.
languagestringoptionalBCP-47 language tag.
example: en-US
is_activebooleanoptionalWhether the Agent is live. Defaults to true.
recordingbooleanoptionalRecord calls handled by this Agent.
max_call_timeintegeroptionalMaximum call duration in seconds.