Agents
Create an agent
Requires agents:write.
POST
/
v1
/
agents
Create an agent
curl --request POST \
--url https://api.voice.wixzel.com/v1/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"system_prompt": "<string>",
"opening_message": "<string>",
"voice": {
"turn_taking": {
"interrupt_sensitivity": "normal",
"silence_wait_ms": 1600
}
},
"language": "en-US",
"knowledge_base_id": "6a96a3ead6e886d42462dd3e",
"outbound_phone_number_id": "6a96a3ead6e886d42462dd3e",
"appointment_booking_enabled": false,
"mcp_server_ids": [
"6a96a3ead6e886d42462dd3e"
],
"tool_ids": [
"6a96a3ead6e886d42462dd3e"
],
"mascot": {
"welcome_message": "<string>"
}
}
'import requests
url = "https://api.voice.wixzel.com/v1/agents"
payload = {
"name": "<string>",
"system_prompt": "<string>",
"opening_message": "<string>",
"voice": { "turn_taking": {
"interrupt_sensitivity": "normal",
"silence_wait_ms": 1600
} },
"language": "en-US",
"knowledge_base_id": "6a96a3ead6e886d42462dd3e",
"outbound_phone_number_id": "6a96a3ead6e886d42462dd3e",
"appointment_booking_enabled": False,
"mcp_server_ids": ["6a96a3ead6e886d42462dd3e"],
"tool_ids": ["6a96a3ead6e886d42462dd3e"],
"mascot": { "welcome_message": "<string>" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
system_prompt: '<string>',
opening_message: '<string>',
voice: {turn_taking: {interrupt_sensitivity: 'normal', silence_wait_ms: 1600}},
language: 'en-US',
knowledge_base_id: '6a96a3ead6e886d42462dd3e',
outbound_phone_number_id: '6a96a3ead6e886d42462dd3e',
appointment_booking_enabled: false,
mcp_server_ids: ['6a96a3ead6e886d42462dd3e'],
tool_ids: ['6a96a3ead6e886d42462dd3e'],
mascot: {welcome_message: '<string>'}
})
};
fetch('https://api.voice.wixzel.com/v1/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.voice.wixzel.com/v1/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'system_prompt' => '<string>',
'opening_message' => '<string>',
'voice' => [
'turn_taking' => [
'interrupt_sensitivity' => 'normal',
'silence_wait_ms' => 1600
]
],
'language' => 'en-US',
'knowledge_base_id' => '6a96a3ead6e886d42462dd3e',
'outbound_phone_number_id' => '6a96a3ead6e886d42462dd3e',
'appointment_booking_enabled' => false,
'mcp_server_ids' => [
'6a96a3ead6e886d42462dd3e'
],
'tool_ids' => [
'6a96a3ead6e886d42462dd3e'
],
'mascot' => [
'welcome_message' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.voice.wixzel.com/v1/agents"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"opening_message\": \"<string>\",\n \"voice\": {\n \"turn_taking\": {\n \"interrupt_sensitivity\": \"normal\",\n \"silence_wait_ms\": 1600\n }\n },\n \"language\": \"en-US\",\n \"knowledge_base_id\": \"6a96a3ead6e886d42462dd3e\",\n \"outbound_phone_number_id\": \"6a96a3ead6e886d42462dd3e\",\n \"appointment_booking_enabled\": false,\n \"mcp_server_ids\": [\n \"6a96a3ead6e886d42462dd3e\"\n ],\n \"tool_ids\": [\n \"6a96a3ead6e886d42462dd3e\"\n ],\n \"mascot\": {\n \"welcome_message\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.voice.wixzel.com/v1/agents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"opening_message\": \"<string>\",\n \"voice\": {\n \"turn_taking\": {\n \"interrupt_sensitivity\": \"normal\",\n \"silence_wait_ms\": 1600\n }\n },\n \"language\": \"en-US\",\n \"knowledge_base_id\": \"6a96a3ead6e886d42462dd3e\",\n \"outbound_phone_number_id\": \"6a96a3ead6e886d42462dd3e\",\n \"appointment_booking_enabled\": false,\n \"mcp_server_ids\": [\n \"6a96a3ead6e886d42462dd3e\"\n ],\n \"tool_ids\": [\n \"6a96a3ead6e886d42462dd3e\"\n ],\n \"mascot\": {\n \"welcome_message\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.voice.wixzel.com/v1/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"opening_message\": \"<string>\",\n \"voice\": {\n \"turn_taking\": {\n \"interrupt_sensitivity\": \"normal\",\n \"silence_wait_ms\": 1600\n }\n },\n \"language\": \"en-US\",\n \"knowledge_base_id\": \"6a96a3ead6e886d42462dd3e\",\n \"outbound_phone_number_id\": \"6a96a3ead6e886d42462dd3e\",\n \"appointment_booking_enabled\": false,\n \"mcp_server_ids\": [\n \"6a96a3ead6e886d42462dd3e\"\n ],\n \"tool_ids\": [\n \"6a96a3ead6e886d42462dd3e\"\n ],\n \"mascot\": {\n \"welcome_message\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "6a96a3ead6e886d42462dd3e",
"object": "agent",
"name": "<string>",
"system_prompt": "<string>",
"opening_message": "<string>",
"voice": {
"stt": {
"model": "deepgram/nova-3",
"language": "en-US",
"endpointing_ms": 1050
},
"llm": {
"model": "openrouter/openai/gpt-6-luna",
"temperature": 1,
"max_tokens": 2048
},
"tts": {
"model": "elevenlabs/eleven_flash_v2_5",
"voice": "21m00Tcm4TlvDq8ikWAM",
"stability": 0.5,
"similarity_boost": 0.5,
"speed": 0.95
},
"realtime": {
"model": "google/gemini-live",
"voice": "Charon",
"language": "auto"
},
"turn_taking": {
"interrupt_sensitivity": "normal",
"silence_wait_ms": 1600
}
},
"language": "<string>",
"knowledge_base_id": "6a96a3ead6e886d42462dd3e",
"outbound_phone_number_id": "6a96a3ead6e886d42462dd3e",
"appointment_booking_enabled": true,
"human_transfer": {
"destinations": [
{
"id": "billing",
"name": "Billing team",
"phone_number": "+14155550100",
"type": "phone",
"enabled": true,
"ring_timeout_seconds": 32
}
],
"enabled": false,
"mode": "blind",
"default_destination_id": "<string>",
"ring_timeout_seconds": 20,
"max_transfers_per_call": 3,
"return_to_agent_on_failure": true
},
"mcp_server_ids": [
"6a96a3ead6e886d42462dd3e"
],
"tool_ids": [
"6a96a3ead6e886d42462dd3e"
],
"mascot": {
"spec": {
"format": "wixzel.mascot",
"version": 1,
"name": "<string>",
"color": "#1388ff",
"shape": {
"kind": "drop",
"rotation": -8,
"aspect": 1,
"seed": 7,
"points": [
123
]
},
"eyes": {
"style": "pill",
"color": "#ffffff",
"width": 0.2,
"height": 0.42,
"gap": 0.42,
"x": 0,
"y": -0.12,
"tilt": 0,
"turn": 0
},
"mouth": {
"style": "smile",
"width": 123,
"y": 123
},
"personality": {
"bounce": 123,
"energy": 123
}
},
"welcome_message": "Hi! I’m Molly from Smile Dental. Tap Call to talk to me.",
"status": "ready",
"status_detail": "reading_website",
"error": {
"code": "<string>",
"message": "<string>"
},
"source": {
"type": "manual",
"description": "<string>",
"url": "<string>"
},
"brand": {
"primary_color": "<string>",
"site_name": "<string>"
},
"public_id": "m_4fT9qLx2Bv8K",
"sharing": {
"link": true,
"embed": true,
"embed_origins": [
"https://example.com",
"https://www.example.com"
],
"max_call_seconds": 300,
"daily_minutes": 60,
"calls_per_visitor_daily": 3,
"max_concurrent_calls": 2,
"caller_info": "none"
},
"updated_at": "2026-09-01T12:00:00.000Z"
},
"whatsapp": {
"account_id": "6a96a3ead6e886d42462dd3e",
"tools": {
"messages": true,
"templates": true,
"media": true,
"schedule": true,
"interactive": true
},
"templates": {
"follow_up": {
"name": "<string>",
"language": "<string>"
},
"reminder": {
"name": "<string>",
"language": "<string>"
},
"booking_confirmation": {
"name": "<string>",
"language": "<string>"
}
},
"allowed_templates": [
"<string>"
],
"auto_booking_confirmation": true,
"auto_reminder_minutes": 5040,
"chat_model": "openrouter/openai/gpt-6-luna",
"max_sends_per_call": 5,
"allow_marketing": true
},
"created_at": "2026-09-01T12:00:00.000Z"
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}Authorizations
Body
application/json
Response
The created an agent
⌘I
Create an agent
curl --request POST \
--url https://api.voice.wixzel.com/v1/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"system_prompt": "<string>",
"opening_message": "<string>",
"voice": {
"turn_taking": {
"interrupt_sensitivity": "normal",
"silence_wait_ms": 1600
}
},
"language": "en-US",
"knowledge_base_id": "6a96a3ead6e886d42462dd3e",
"outbound_phone_number_id": "6a96a3ead6e886d42462dd3e",
"appointment_booking_enabled": false,
"mcp_server_ids": [
"6a96a3ead6e886d42462dd3e"
],
"tool_ids": [
"6a96a3ead6e886d42462dd3e"
],
"mascot": {
"welcome_message": "<string>"
}
}
'import requests
url = "https://api.voice.wixzel.com/v1/agents"
payload = {
"name": "<string>",
"system_prompt": "<string>",
"opening_message": "<string>",
"voice": { "turn_taking": {
"interrupt_sensitivity": "normal",
"silence_wait_ms": 1600
} },
"language": "en-US",
"knowledge_base_id": "6a96a3ead6e886d42462dd3e",
"outbound_phone_number_id": "6a96a3ead6e886d42462dd3e",
"appointment_booking_enabled": False,
"mcp_server_ids": ["6a96a3ead6e886d42462dd3e"],
"tool_ids": ["6a96a3ead6e886d42462dd3e"],
"mascot": { "welcome_message": "<string>" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
system_prompt: '<string>',
opening_message: '<string>',
voice: {turn_taking: {interrupt_sensitivity: 'normal', silence_wait_ms: 1600}},
language: 'en-US',
knowledge_base_id: '6a96a3ead6e886d42462dd3e',
outbound_phone_number_id: '6a96a3ead6e886d42462dd3e',
appointment_booking_enabled: false,
mcp_server_ids: ['6a96a3ead6e886d42462dd3e'],
tool_ids: ['6a96a3ead6e886d42462dd3e'],
mascot: {welcome_message: '<string>'}
})
};
fetch('https://api.voice.wixzel.com/v1/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.voice.wixzel.com/v1/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'system_prompt' => '<string>',
'opening_message' => '<string>',
'voice' => [
'turn_taking' => [
'interrupt_sensitivity' => 'normal',
'silence_wait_ms' => 1600
]
],
'language' => 'en-US',
'knowledge_base_id' => '6a96a3ead6e886d42462dd3e',
'outbound_phone_number_id' => '6a96a3ead6e886d42462dd3e',
'appointment_booking_enabled' => false,
'mcp_server_ids' => [
'6a96a3ead6e886d42462dd3e'
],
'tool_ids' => [
'6a96a3ead6e886d42462dd3e'
],
'mascot' => [
'welcome_message' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.voice.wixzel.com/v1/agents"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"opening_message\": \"<string>\",\n \"voice\": {\n \"turn_taking\": {\n \"interrupt_sensitivity\": \"normal\",\n \"silence_wait_ms\": 1600\n }\n },\n \"language\": \"en-US\",\n \"knowledge_base_id\": \"6a96a3ead6e886d42462dd3e\",\n \"outbound_phone_number_id\": \"6a96a3ead6e886d42462dd3e\",\n \"appointment_booking_enabled\": false,\n \"mcp_server_ids\": [\n \"6a96a3ead6e886d42462dd3e\"\n ],\n \"tool_ids\": [\n \"6a96a3ead6e886d42462dd3e\"\n ],\n \"mascot\": {\n \"welcome_message\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.voice.wixzel.com/v1/agents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"opening_message\": \"<string>\",\n \"voice\": {\n \"turn_taking\": {\n \"interrupt_sensitivity\": \"normal\",\n \"silence_wait_ms\": 1600\n }\n },\n \"language\": \"en-US\",\n \"knowledge_base_id\": \"6a96a3ead6e886d42462dd3e\",\n \"outbound_phone_number_id\": \"6a96a3ead6e886d42462dd3e\",\n \"appointment_booking_enabled\": false,\n \"mcp_server_ids\": [\n \"6a96a3ead6e886d42462dd3e\"\n ],\n \"tool_ids\": [\n \"6a96a3ead6e886d42462dd3e\"\n ],\n \"mascot\": {\n \"welcome_message\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.voice.wixzel.com/v1/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"opening_message\": \"<string>\",\n \"voice\": {\n \"turn_taking\": {\n \"interrupt_sensitivity\": \"normal\",\n \"silence_wait_ms\": 1600\n }\n },\n \"language\": \"en-US\",\n \"knowledge_base_id\": \"6a96a3ead6e886d42462dd3e\",\n \"outbound_phone_number_id\": \"6a96a3ead6e886d42462dd3e\",\n \"appointment_booking_enabled\": false,\n \"mcp_server_ids\": [\n \"6a96a3ead6e886d42462dd3e\"\n ],\n \"tool_ids\": [\n \"6a96a3ead6e886d42462dd3e\"\n ],\n \"mascot\": {\n \"welcome_message\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "6a96a3ead6e886d42462dd3e",
"object": "agent",
"name": "<string>",
"system_prompt": "<string>",
"opening_message": "<string>",
"voice": {
"stt": {
"model": "deepgram/nova-3",
"language": "en-US",
"endpointing_ms": 1050
},
"llm": {
"model": "openrouter/openai/gpt-6-luna",
"temperature": 1,
"max_tokens": 2048
},
"tts": {
"model": "elevenlabs/eleven_flash_v2_5",
"voice": "21m00Tcm4TlvDq8ikWAM",
"stability": 0.5,
"similarity_boost": 0.5,
"speed": 0.95
},
"realtime": {
"model": "google/gemini-live",
"voice": "Charon",
"language": "auto"
},
"turn_taking": {
"interrupt_sensitivity": "normal",
"silence_wait_ms": 1600
}
},
"language": "<string>",
"knowledge_base_id": "6a96a3ead6e886d42462dd3e",
"outbound_phone_number_id": "6a96a3ead6e886d42462dd3e",
"appointment_booking_enabled": true,
"human_transfer": {
"destinations": [
{
"id": "billing",
"name": "Billing team",
"phone_number": "+14155550100",
"type": "phone",
"enabled": true,
"ring_timeout_seconds": 32
}
],
"enabled": false,
"mode": "blind",
"default_destination_id": "<string>",
"ring_timeout_seconds": 20,
"max_transfers_per_call": 3,
"return_to_agent_on_failure": true
},
"mcp_server_ids": [
"6a96a3ead6e886d42462dd3e"
],
"tool_ids": [
"6a96a3ead6e886d42462dd3e"
],
"mascot": {
"spec": {
"format": "wixzel.mascot",
"version": 1,
"name": "<string>",
"color": "#1388ff",
"shape": {
"kind": "drop",
"rotation": -8,
"aspect": 1,
"seed": 7,
"points": [
123
]
},
"eyes": {
"style": "pill",
"color": "#ffffff",
"width": 0.2,
"height": 0.42,
"gap": 0.42,
"x": 0,
"y": -0.12,
"tilt": 0,
"turn": 0
},
"mouth": {
"style": "smile",
"width": 123,
"y": 123
},
"personality": {
"bounce": 123,
"energy": 123
}
},
"welcome_message": "Hi! I’m Molly from Smile Dental. Tap Call to talk to me.",
"status": "ready",
"status_detail": "reading_website",
"error": {
"code": "<string>",
"message": "<string>"
},
"source": {
"type": "manual",
"description": "<string>",
"url": "<string>"
},
"brand": {
"primary_color": "<string>",
"site_name": "<string>"
},
"public_id": "m_4fT9qLx2Bv8K",
"sharing": {
"link": true,
"embed": true,
"embed_origins": [
"https://example.com",
"https://www.example.com"
],
"max_call_seconds": 300,
"daily_minutes": 60,
"calls_per_visitor_daily": 3,
"max_concurrent_calls": 2,
"caller_info": "none"
},
"updated_at": "2026-09-01T12:00:00.000Z"
},
"whatsapp": {
"account_id": "6a96a3ead6e886d42462dd3e",
"tools": {
"messages": true,
"templates": true,
"media": true,
"schedule": true,
"interactive": true
},
"templates": {
"follow_up": {
"name": "<string>",
"language": "<string>"
},
"reminder": {
"name": "<string>",
"language": "<string>"
},
"booking_confirmation": {
"name": "<string>",
"language": "<string>"
}
},
"allowed_templates": [
"<string>"
],
"auto_booking_confirmation": true,
"auto_reminder_minutes": 5040,
"chat_model": "openrouter/openai/gpt-6-luna",
"max_sends_per_call": 5,
"allow_marketing": true
},
"created_at": "2026-09-01T12:00:00.000Z"
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}
