Create Voice Agent
Creates a new voice agent using the V2 API with enhanced configuration options.
Authorizations
Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '
Body
Name of the voice agent (max 150 characters).
150"Customer Support Agent"
Type of voice agent.
Single Prompt, Flow Agent "Single Prompt"
Conversation settings for the voice agent.
Voice settings for the agent.
LLM configuration.
Call and audio settings.
Web tools attached to the agent.
Array of knowledge base item UUIDs.
["48f7656f-098b-4c43-b165-7cfd2cc8ac30"]Array of voice dictionary UUIDs.
["48f7656f-098b-4c43-b165-7cfd2cc8ac30"]Phone number configuration.
Webhook URL for external integrations.
"https://example.com/webhook"
Webhook authentication configuration.
Workflow graph for Flow Agents (type = "Flow Agent"). Ignored for Single Prompt agents.
{
"nodes": [
{
"id": "2ZHj3IUpJFc-83H2-f8d3",
"type": "start",
"label": "Start",
"message": "Hello, how can I help you today?",
"messageType": "prompt",
"position": { "x": 0, "y": 0 },
"metadata": { "version": 1 },
"transitions": []
}
],
"edges": [],
"customVariables": [
{
"id": "z5QsyxUbrKPjYMGaMj1e1",
"name": "customer_name",
"dataType": "string",
"description": "",
"defaultValue": "john",
"extractionPrompt": "",
"enumValues": []
}
]
}Expected outcome response structure.