Update an assistant
curl --request PATCH \
--url https://api.vonative.com/v1/assistants/{assistant_uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"system_prompt": "<string>",
"model": {},
"voice": {},
"transcriber": {},
"first_message": "<string>",
"first_message_mode": "<string>",
"max_duration_seconds": 123,
"silence_timeout_seconds": 123,
"background_sound": "<string>",
"background_sound_volume": 0.5,
"audio_recording_enabled": true,
"summary_enabled": true,
"analysis_enabled": true,
"analysis_profile_id": "<string>",
"analysis_plan": {},
"artifact_plan": {},
"start_speaking_plan": {},
"stop_speaking_plan": {},
"monitor_plan": {},
"compliance_plan": {},
"guardrail_plan": {
"enabled": true,
"mode": "enforce",
"strictness": "balanced",
"classifier": {
"provider": "openai",
"model": "gpt-4.1-mini",
"timeout_ms": 1200,
"on_error": "allow",
"observer_model": "<string>"
},
"limits": {
"max_session_turns": 250,
"max_duration_seconds": 7215,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"banned_phrases": {
"enabled": false,
"input": [
"<string>"
],
"output": [
"<string>"
],
"patterns": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_injection": {
"enabled": false,
"sensitivity": "medium",
"use_llm": true,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"topics": {
"enabled": false,
"description": "",
"allowed": [
"<string>"
],
"blocked": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"custom_rules": [
{
"id": "<string>",
"prompt": "<string>",
"name": "",
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
}
],
"escalation": {
"after_violations": 3,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_hardening": {
"enabled": true,
"out_of_scope": "decline",
"handoff_hint": "",
"sensitive_advice": false
},
"tool_safety": {
"validate_arguments": true,
"block_duplicate_calls": true,
"max_tool_steps": 5
},
"review": {
"enabled": false,
"judges": [],
"sample_rate": 1,
"model": "<string>"
},
"replace": true
},
"avatar_behavior_profile": {},
"background_speech_denoising_plan": {},
"keypad_input_plan": {},
"observability_plan": {},
"transport_configurations": [
{}
],
"credentials": [
{}
],
"credential_ids": [
"<string>"
],
"hooks": [
{}
],
"server": {},
"client_messages": [
"<string>"
],
"server_messages": [
"<string>"
],
"metadata_json": {},
"squad_id": "<string>",
"squad_role": "<string>",
"file_ids": [
"<string>"
],
"tool_ids": [
"<string>"
],
"data_collection": {}
}
'import requests
url = "https://api.vonative.com/v1/assistants/{assistant_uuid}"
payload = {
"name": "<string>",
"description": "<string>",
"system_prompt": "<string>",
"model": {},
"voice": {},
"transcriber": {},
"first_message": "<string>",
"first_message_mode": "<string>",
"max_duration_seconds": 123,
"silence_timeout_seconds": 123,
"background_sound": "<string>",
"background_sound_volume": 0.5,
"audio_recording_enabled": True,
"summary_enabled": True,
"analysis_enabled": True,
"analysis_profile_id": "<string>",
"analysis_plan": {},
"artifact_plan": {},
"start_speaking_plan": {},
"stop_speaking_plan": {},
"monitor_plan": {},
"compliance_plan": {},
"guardrail_plan": {
"enabled": True,
"mode": "enforce",
"strictness": "balanced",
"classifier": {
"provider": "openai",
"model": "gpt-4.1-mini",
"timeout_ms": 1200,
"on_error": "allow",
"observer_model": "<string>"
},
"limits": {
"max_session_turns": 250,
"max_duration_seconds": 7215,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"banned_phrases": {
"enabled": False,
"input": ["<string>"],
"output": ["<string>"],
"patterns": ["<string>"],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_injection": {
"enabled": False,
"sensitivity": "medium",
"use_llm": True,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"topics": {
"enabled": False,
"description": "",
"allowed": ["<string>"],
"blocked": ["<string>"],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"custom_rules": [
{
"id": "<string>",
"prompt": "<string>",
"name": "",
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
}
],
"escalation": {
"after_violations": 3,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_hardening": {
"enabled": True,
"out_of_scope": "decline",
"handoff_hint": "",
"sensitive_advice": False
},
"tool_safety": {
"validate_arguments": True,
"block_duplicate_calls": True,
"max_tool_steps": 5
},
"review": {
"enabled": False,
"judges": [],
"sample_rate": 1,
"model": "<string>"
},
"replace": True
},
"avatar_behavior_profile": {},
"background_speech_denoising_plan": {},
"keypad_input_plan": {},
"observability_plan": {},
"transport_configurations": [{}],
"credentials": [{}],
"credential_ids": ["<string>"],
"hooks": [{}],
"server": {},
"client_messages": ["<string>"],
"server_messages": ["<string>"],
"metadata_json": {},
"squad_id": "<string>",
"squad_role": "<string>",
"file_ids": ["<string>"],
"tool_ids": ["<string>"],
"data_collection": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
system_prompt: '<string>',
model: {},
voice: {},
transcriber: {},
first_message: '<string>',
first_message_mode: '<string>',
max_duration_seconds: 123,
silence_timeout_seconds: 123,
background_sound: '<string>',
background_sound_volume: 0.5,
audio_recording_enabled: true,
summary_enabled: true,
analysis_enabled: true,
analysis_profile_id: '<string>',
analysis_plan: {},
artifact_plan: {},
start_speaking_plan: {},
stop_speaking_plan: {},
monitor_plan: {},
compliance_plan: {},
guardrail_plan: {
enabled: true,
mode: 'enforce',
strictness: 'balanced',
classifier: {
provider: 'openai',
model: 'gpt-4.1-mini',
timeout_ms: 1200,
on_error: 'allow',
observer_model: '<string>'
},
limits: {
max_session_turns: 250,
max_duration_seconds: 7215,
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
banned_phrases: {
enabled: false,
input: ['<string>'],
output: ['<string>'],
patterns: ['<string>'],
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
prompt_injection: {
enabled: false,
sensitivity: 'medium',
use_llm: true,
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
topics: {
enabled: false,
description: '',
allowed: ['<string>'],
blocked: ['<string>'],
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
custom_rules: [
{
id: '<string>',
prompt: '<string>',
name: '',
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
}
],
escalation: {
after_violations: 3,
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
prompt_hardening: {
enabled: true,
out_of_scope: 'decline',
handoff_hint: '',
sensitive_advice: false
},
tool_safety: {validate_arguments: true, block_duplicate_calls: true, max_tool_steps: 5},
review: {enabled: false, judges: [], sample_rate: 1, model: '<string>'},
replace: true
},
avatar_behavior_profile: {},
background_speech_denoising_plan: {},
keypad_input_plan: {},
observability_plan: {},
transport_configurations: [{}],
credentials: [{}],
credential_ids: ['<string>'],
hooks: [{}],
server: {},
client_messages: ['<string>'],
server_messages: ['<string>'],
metadata_json: {},
squad_id: '<string>',
squad_role: '<string>',
file_ids: ['<string>'],
tool_ids: ['<string>'],
data_collection: {}
})
};
fetch('https://api.vonative.com/v1/assistants/{assistant_uuid}', 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.vonative.com/v1/assistants/{assistant_uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'system_prompt' => '<string>',
'model' => [
],
'voice' => [
],
'transcriber' => [
],
'first_message' => '<string>',
'first_message_mode' => '<string>',
'max_duration_seconds' => 123,
'silence_timeout_seconds' => 123,
'background_sound' => '<string>',
'background_sound_volume' => 0.5,
'audio_recording_enabled' => true,
'summary_enabled' => true,
'analysis_enabled' => true,
'analysis_profile_id' => '<string>',
'analysis_plan' => [
],
'artifact_plan' => [
],
'start_speaking_plan' => [
],
'stop_speaking_plan' => [
],
'monitor_plan' => [
],
'compliance_plan' => [
],
'guardrail_plan' => [
'enabled' => true,
'mode' => 'enforce',
'strictness' => 'balanced',
'classifier' => [
'provider' => 'openai',
'model' => 'gpt-4.1-mini',
'timeout_ms' => 1200,
'on_error' => 'allow',
'observer_model' => '<string>'
],
'limits' => [
'max_session_turns' => 250,
'max_duration_seconds' => 7215,
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'banned_phrases' => [
'enabled' => false,
'input' => [
'<string>'
],
'output' => [
'<string>'
],
'patterns' => [
'<string>'
],
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'prompt_injection' => [
'enabled' => false,
'sensitivity' => 'medium',
'use_llm' => true,
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'topics' => [
'enabled' => false,
'description' => '',
'allowed' => [
'<string>'
],
'blocked' => [
'<string>'
],
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'custom_rules' => [
[
'id' => '<string>',
'prompt' => '<string>',
'name' => '',
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
]
],
'escalation' => [
'after_violations' => 3,
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'prompt_hardening' => [
'enabled' => true,
'out_of_scope' => 'decline',
'handoff_hint' => '',
'sensitive_advice' => false
],
'tool_safety' => [
'validate_arguments' => true,
'block_duplicate_calls' => true,
'max_tool_steps' => 5
],
'review' => [
'enabled' => false,
'judges' => [
],
'sample_rate' => 1,
'model' => '<string>'
],
'replace' => true
],
'avatar_behavior_profile' => [
],
'background_speech_denoising_plan' => [
],
'keypad_input_plan' => [
],
'observability_plan' => [
],
'transport_configurations' => [
[
]
],
'credentials' => [
[
]
],
'credential_ids' => [
'<string>'
],
'hooks' => [
[
]
],
'server' => [
],
'client_messages' => [
'<string>'
],
'server_messages' => [
'<string>'
],
'metadata_json' => [
],
'squad_id' => '<string>',
'squad_role' => '<string>',
'file_ids' => [
'<string>'
],
'tool_ids' => [
'<string>'
],
'data_collection' => [
]
]),
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.vonative.com/v1/assistants/{assistant_uuid}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"model\": {},\n \"voice\": {},\n \"transcriber\": {},\n \"first_message\": \"<string>\",\n \"first_message_mode\": \"<string>\",\n \"max_duration_seconds\": 123,\n \"silence_timeout_seconds\": 123,\n \"background_sound\": \"<string>\",\n \"background_sound_volume\": 0.5,\n \"audio_recording_enabled\": true,\n \"summary_enabled\": true,\n \"analysis_enabled\": true,\n \"analysis_profile_id\": \"<string>\",\n \"analysis_plan\": {},\n \"artifact_plan\": {},\n \"start_speaking_plan\": {},\n \"stop_speaking_plan\": {},\n \"monitor_plan\": {},\n \"compliance_plan\": {},\n \"guardrail_plan\": {\n \"enabled\": true,\n \"mode\": \"enforce\",\n \"strictness\": \"balanced\",\n \"classifier\": {\n \"provider\": \"openai\",\n \"model\": \"gpt-4.1-mini\",\n \"timeout_ms\": 1200,\n \"on_error\": \"allow\",\n \"observer_model\": \"<string>\"\n },\n \"limits\": {\n \"max_session_turns\": 250,\n \"max_duration_seconds\": 7215,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"banned_phrases\": {\n \"enabled\": false,\n \"input\": [\n \"<string>\"\n ],\n \"output\": [\n \"<string>\"\n ],\n \"patterns\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_injection\": {\n \"enabled\": false,\n \"sensitivity\": \"medium\",\n \"use_llm\": true,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"topics\": {\n \"enabled\": false,\n \"description\": \"\",\n \"allowed\": [\n \"<string>\"\n ],\n \"blocked\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"custom_rules\": [\n {\n \"id\": \"<string>\",\n \"prompt\": \"<string>\",\n \"name\": \"\",\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n }\n ],\n \"escalation\": {\n \"after_violations\": 3,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_hardening\": {\n \"enabled\": true,\n \"out_of_scope\": \"decline\",\n \"handoff_hint\": \"\",\n \"sensitive_advice\": false\n },\n \"tool_safety\": {\n \"validate_arguments\": true,\n \"block_duplicate_calls\": true,\n \"max_tool_steps\": 5\n },\n \"review\": {\n \"enabled\": false,\n \"judges\": [],\n \"sample_rate\": 1,\n \"model\": \"<string>\"\n },\n \"replace\": true\n },\n \"avatar_behavior_profile\": {},\n \"background_speech_denoising_plan\": {},\n \"keypad_input_plan\": {},\n \"observability_plan\": {},\n \"transport_configurations\": [\n {}\n ],\n \"credentials\": [\n {}\n ],\n \"credential_ids\": [\n \"<string>\"\n ],\n \"hooks\": [\n {}\n ],\n \"server\": {},\n \"client_messages\": [\n \"<string>\"\n ],\n \"server_messages\": [\n \"<string>\"\n ],\n \"metadata_json\": {},\n \"squad_id\": \"<string>\",\n \"squad_role\": \"<string>\",\n \"file_ids\": [\n \"<string>\"\n ],\n \"tool_ids\": [\n \"<string>\"\n ],\n \"data_collection\": {}\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.vonative.com/v1/assistants/{assistant_uuid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"model\": {},\n \"voice\": {},\n \"transcriber\": {},\n \"first_message\": \"<string>\",\n \"first_message_mode\": \"<string>\",\n \"max_duration_seconds\": 123,\n \"silence_timeout_seconds\": 123,\n \"background_sound\": \"<string>\",\n \"background_sound_volume\": 0.5,\n \"audio_recording_enabled\": true,\n \"summary_enabled\": true,\n \"analysis_enabled\": true,\n \"analysis_profile_id\": \"<string>\",\n \"analysis_plan\": {},\n \"artifact_plan\": {},\n \"start_speaking_plan\": {},\n \"stop_speaking_plan\": {},\n \"monitor_plan\": {},\n \"compliance_plan\": {},\n \"guardrail_plan\": {\n \"enabled\": true,\n \"mode\": \"enforce\",\n \"strictness\": \"balanced\",\n \"classifier\": {\n \"provider\": \"openai\",\n \"model\": \"gpt-4.1-mini\",\n \"timeout_ms\": 1200,\n \"on_error\": \"allow\",\n \"observer_model\": \"<string>\"\n },\n \"limits\": {\n \"max_session_turns\": 250,\n \"max_duration_seconds\": 7215,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"banned_phrases\": {\n \"enabled\": false,\n \"input\": [\n \"<string>\"\n ],\n \"output\": [\n \"<string>\"\n ],\n \"patterns\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_injection\": {\n \"enabled\": false,\n \"sensitivity\": \"medium\",\n \"use_llm\": true,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"topics\": {\n \"enabled\": false,\n \"description\": \"\",\n \"allowed\": [\n \"<string>\"\n ],\n \"blocked\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"custom_rules\": [\n {\n \"id\": \"<string>\",\n \"prompt\": \"<string>\",\n \"name\": \"\",\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n }\n ],\n \"escalation\": {\n \"after_violations\": 3,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_hardening\": {\n \"enabled\": true,\n \"out_of_scope\": \"decline\",\n \"handoff_hint\": \"\",\n \"sensitive_advice\": false\n },\n \"tool_safety\": {\n \"validate_arguments\": true,\n \"block_duplicate_calls\": true,\n \"max_tool_steps\": 5\n },\n \"review\": {\n \"enabled\": false,\n \"judges\": [],\n \"sample_rate\": 1,\n \"model\": \"<string>\"\n },\n \"replace\": true\n },\n \"avatar_behavior_profile\": {},\n \"background_speech_denoising_plan\": {},\n \"keypad_input_plan\": {},\n \"observability_plan\": {},\n \"transport_configurations\": [\n {}\n ],\n \"credentials\": [\n {}\n ],\n \"credential_ids\": [\n \"<string>\"\n ],\n \"hooks\": [\n {}\n ],\n \"server\": {},\n \"client_messages\": [\n \"<string>\"\n ],\n \"server_messages\": [\n \"<string>\"\n ],\n \"metadata_json\": {},\n \"squad_id\": \"<string>\",\n \"squad_role\": \"<string>\",\n \"file_ids\": [\n \"<string>\"\n ],\n \"tool_ids\": [\n \"<string>\"\n ],\n \"data_collection\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vonative.com/v1/assistants/{assistant_uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"model\": {},\n \"voice\": {},\n \"transcriber\": {},\n \"first_message\": \"<string>\",\n \"first_message_mode\": \"<string>\",\n \"max_duration_seconds\": 123,\n \"silence_timeout_seconds\": 123,\n \"background_sound\": \"<string>\",\n \"background_sound_volume\": 0.5,\n \"audio_recording_enabled\": true,\n \"summary_enabled\": true,\n \"analysis_enabled\": true,\n \"analysis_profile_id\": \"<string>\",\n \"analysis_plan\": {},\n \"artifact_plan\": {},\n \"start_speaking_plan\": {},\n \"stop_speaking_plan\": {},\n \"monitor_plan\": {},\n \"compliance_plan\": {},\n \"guardrail_plan\": {\n \"enabled\": true,\n \"mode\": \"enforce\",\n \"strictness\": \"balanced\",\n \"classifier\": {\n \"provider\": \"openai\",\n \"model\": \"gpt-4.1-mini\",\n \"timeout_ms\": 1200,\n \"on_error\": \"allow\",\n \"observer_model\": \"<string>\"\n },\n \"limits\": {\n \"max_session_turns\": 250,\n \"max_duration_seconds\": 7215,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"banned_phrases\": {\n \"enabled\": false,\n \"input\": [\n \"<string>\"\n ],\n \"output\": [\n \"<string>\"\n ],\n \"patterns\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_injection\": {\n \"enabled\": false,\n \"sensitivity\": \"medium\",\n \"use_llm\": true,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"topics\": {\n \"enabled\": false,\n \"description\": \"\",\n \"allowed\": [\n \"<string>\"\n ],\n \"blocked\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"custom_rules\": [\n {\n \"id\": \"<string>\",\n \"prompt\": \"<string>\",\n \"name\": \"\",\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n }\n ],\n \"escalation\": {\n \"after_violations\": 3,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_hardening\": {\n \"enabled\": true,\n \"out_of_scope\": \"decline\",\n \"handoff_hint\": \"\",\n \"sensitive_advice\": false\n },\n \"tool_safety\": {\n \"validate_arguments\": true,\n \"block_duplicate_calls\": true,\n \"max_tool_steps\": 5\n },\n \"review\": {\n \"enabled\": false,\n \"judges\": [],\n \"sample_rate\": 1,\n \"model\": \"<string>\"\n },\n \"replace\": true\n },\n \"avatar_behavior_profile\": {},\n \"background_speech_denoising_plan\": {},\n \"keypad_input_plan\": {},\n \"observability_plan\": {},\n \"transport_configurations\": [\n {}\n ],\n \"credentials\": [\n {}\n ],\n \"credential_ids\": [\n \"<string>\"\n ],\n \"hooks\": [\n {}\n ],\n \"server\": {},\n \"client_messages\": [\n \"<string>\"\n ],\n \"server_messages\": [\n \"<string>\"\n ],\n \"metadata_json\": {},\n \"squad_id\": \"<string>\",\n \"squad_role\": \"<string>\",\n \"file_ids\": [\n \"<string>\"\n ],\n \"tool_ids\": [\n \"<string>\"\n ],\n \"data_collection\": {}\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "success",
"data": {
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"system_prompt": "<string>",
"model": {},
"voice": {},
"transcriber": {},
"first_message": "<string>",
"first_message_mode": "<string>",
"first_message_interruptions_enabled": true,
"end_call_message": "<string>",
"end_call_phrases": [],
"voicemail_message": "<string>",
"voicemail_detection": {},
"max_duration_seconds": 600,
"silence_timeout_seconds": 30,
"background_sound": "<string>",
"background_sound_url": "<string>",
"background_sound_volume": 0.8,
"model_output_in_messages_enabled": false,
"audio_recording_enabled": false,
"summary_enabled": false,
"analysis_enabled": false,
"analysis_profile_id": "<string>",
"analysis_plan": {},
"artifact_plan": {},
"start_speaking_plan": {},
"stop_speaking_plan": {},
"monitor_plan": {},
"compliance_plan": {},
"guardrail_plan": {
"enabled": true,
"mode": "enforce",
"strictness": "balanced",
"classifier": {
"provider": "openai",
"model": "gpt-4.1-mini",
"timeout_ms": 1200,
"on_error": "allow",
"observer_model": "<string>"
},
"limits": {
"max_session_turns": 250,
"max_duration_seconds": 7215,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"banned_phrases": {
"enabled": false,
"input": [
"<string>"
],
"output": [
"<string>"
],
"patterns": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_injection": {
"enabled": false,
"sensitivity": "medium",
"use_llm": true,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"topics": {
"enabled": false,
"description": "",
"allowed": [
"<string>"
],
"blocked": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"custom_rules": [
{
"id": "<string>",
"prompt": "<string>",
"name": "",
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
}
],
"escalation": {
"after_violations": 3,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_hardening": {
"enabled": true,
"out_of_scope": "decline",
"handoff_hint": "",
"sensitive_advice": false
},
"tool_safety": {
"validate_arguments": true,
"block_duplicate_calls": true,
"max_tool_steps": 5
},
"review": {
"enabled": false,
"judges": [],
"sample_rate": 1,
"model": "<string>"
},
"replace": true
},
"avatar_behavior_profile": {},
"background_speech_denoising_plan": {},
"keypad_input_plan": {},
"observability_plan": {},
"transport_configurations": [],
"credentials": [],
"credential_ids": [],
"hooks": [],
"server": {},
"client_messages": [],
"server_messages": [],
"metadata_json": {},
"squad_id": "<string>",
"squad_role": "<string>",
"file_ids": [],
"tool_ids": [],
"data_collection": {},
"vapi_assistant_id": "<string>",
"status": "<string>",
"organization_id": "<string>",
"owner_id": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Assistants
Update an assistant
Update an assistant. Send only the fields to change.
Required permission: assistants:write
PATCH
/
v1
/
assistants
/
{assistant_uuid}
Update an assistant
curl --request PATCH \
--url https://api.vonative.com/v1/assistants/{assistant_uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"system_prompt": "<string>",
"model": {},
"voice": {},
"transcriber": {},
"first_message": "<string>",
"first_message_mode": "<string>",
"max_duration_seconds": 123,
"silence_timeout_seconds": 123,
"background_sound": "<string>",
"background_sound_volume": 0.5,
"audio_recording_enabled": true,
"summary_enabled": true,
"analysis_enabled": true,
"analysis_profile_id": "<string>",
"analysis_plan": {},
"artifact_plan": {},
"start_speaking_plan": {},
"stop_speaking_plan": {},
"monitor_plan": {},
"compliance_plan": {},
"guardrail_plan": {
"enabled": true,
"mode": "enforce",
"strictness": "balanced",
"classifier": {
"provider": "openai",
"model": "gpt-4.1-mini",
"timeout_ms": 1200,
"on_error": "allow",
"observer_model": "<string>"
},
"limits": {
"max_session_turns": 250,
"max_duration_seconds": 7215,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"banned_phrases": {
"enabled": false,
"input": [
"<string>"
],
"output": [
"<string>"
],
"patterns": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_injection": {
"enabled": false,
"sensitivity": "medium",
"use_llm": true,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"topics": {
"enabled": false,
"description": "",
"allowed": [
"<string>"
],
"blocked": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"custom_rules": [
{
"id": "<string>",
"prompt": "<string>",
"name": "",
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
}
],
"escalation": {
"after_violations": 3,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_hardening": {
"enabled": true,
"out_of_scope": "decline",
"handoff_hint": "",
"sensitive_advice": false
},
"tool_safety": {
"validate_arguments": true,
"block_duplicate_calls": true,
"max_tool_steps": 5
},
"review": {
"enabled": false,
"judges": [],
"sample_rate": 1,
"model": "<string>"
},
"replace": true
},
"avatar_behavior_profile": {},
"background_speech_denoising_plan": {},
"keypad_input_plan": {},
"observability_plan": {},
"transport_configurations": [
{}
],
"credentials": [
{}
],
"credential_ids": [
"<string>"
],
"hooks": [
{}
],
"server": {},
"client_messages": [
"<string>"
],
"server_messages": [
"<string>"
],
"metadata_json": {},
"squad_id": "<string>",
"squad_role": "<string>",
"file_ids": [
"<string>"
],
"tool_ids": [
"<string>"
],
"data_collection": {}
}
'import requests
url = "https://api.vonative.com/v1/assistants/{assistant_uuid}"
payload = {
"name": "<string>",
"description": "<string>",
"system_prompt": "<string>",
"model": {},
"voice": {},
"transcriber": {},
"first_message": "<string>",
"first_message_mode": "<string>",
"max_duration_seconds": 123,
"silence_timeout_seconds": 123,
"background_sound": "<string>",
"background_sound_volume": 0.5,
"audio_recording_enabled": True,
"summary_enabled": True,
"analysis_enabled": True,
"analysis_profile_id": "<string>",
"analysis_plan": {},
"artifact_plan": {},
"start_speaking_plan": {},
"stop_speaking_plan": {},
"monitor_plan": {},
"compliance_plan": {},
"guardrail_plan": {
"enabled": True,
"mode": "enforce",
"strictness": "balanced",
"classifier": {
"provider": "openai",
"model": "gpt-4.1-mini",
"timeout_ms": 1200,
"on_error": "allow",
"observer_model": "<string>"
},
"limits": {
"max_session_turns": 250,
"max_duration_seconds": 7215,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"banned_phrases": {
"enabled": False,
"input": ["<string>"],
"output": ["<string>"],
"patterns": ["<string>"],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_injection": {
"enabled": False,
"sensitivity": "medium",
"use_llm": True,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"topics": {
"enabled": False,
"description": "",
"allowed": ["<string>"],
"blocked": ["<string>"],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"custom_rules": [
{
"id": "<string>",
"prompt": "<string>",
"name": "",
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
}
],
"escalation": {
"after_violations": 3,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_hardening": {
"enabled": True,
"out_of_scope": "decline",
"handoff_hint": "",
"sensitive_advice": False
},
"tool_safety": {
"validate_arguments": True,
"block_duplicate_calls": True,
"max_tool_steps": 5
},
"review": {
"enabled": False,
"judges": [],
"sample_rate": 1,
"model": "<string>"
},
"replace": True
},
"avatar_behavior_profile": {},
"background_speech_denoising_plan": {},
"keypad_input_plan": {},
"observability_plan": {},
"transport_configurations": [{}],
"credentials": [{}],
"credential_ids": ["<string>"],
"hooks": [{}],
"server": {},
"client_messages": ["<string>"],
"server_messages": ["<string>"],
"metadata_json": {},
"squad_id": "<string>",
"squad_role": "<string>",
"file_ids": ["<string>"],
"tool_ids": ["<string>"],
"data_collection": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
system_prompt: '<string>',
model: {},
voice: {},
transcriber: {},
first_message: '<string>',
first_message_mode: '<string>',
max_duration_seconds: 123,
silence_timeout_seconds: 123,
background_sound: '<string>',
background_sound_volume: 0.5,
audio_recording_enabled: true,
summary_enabled: true,
analysis_enabled: true,
analysis_profile_id: '<string>',
analysis_plan: {},
artifact_plan: {},
start_speaking_plan: {},
stop_speaking_plan: {},
monitor_plan: {},
compliance_plan: {},
guardrail_plan: {
enabled: true,
mode: 'enforce',
strictness: 'balanced',
classifier: {
provider: 'openai',
model: 'gpt-4.1-mini',
timeout_ms: 1200,
on_error: 'allow',
observer_model: '<string>'
},
limits: {
max_session_turns: 250,
max_duration_seconds: 7215,
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
banned_phrases: {
enabled: false,
input: ['<string>'],
output: ['<string>'],
patterns: ['<string>'],
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
prompt_injection: {
enabled: false,
sensitivity: 'medium',
use_llm: true,
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
topics: {
enabled: false,
description: '',
allowed: ['<string>'],
blocked: ['<string>'],
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
custom_rules: [
{
id: '<string>',
prompt: '<string>',
name: '',
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
}
],
escalation: {
after_violations: 3,
action: {
type: 'block',
message: '<string>',
transfer_destination: '<string>',
target_node_id: '<string>'
}
},
prompt_hardening: {
enabled: true,
out_of_scope: 'decline',
handoff_hint: '',
sensitive_advice: false
},
tool_safety: {validate_arguments: true, block_duplicate_calls: true, max_tool_steps: 5},
review: {enabled: false, judges: [], sample_rate: 1, model: '<string>'},
replace: true
},
avatar_behavior_profile: {},
background_speech_denoising_plan: {},
keypad_input_plan: {},
observability_plan: {},
transport_configurations: [{}],
credentials: [{}],
credential_ids: ['<string>'],
hooks: [{}],
server: {},
client_messages: ['<string>'],
server_messages: ['<string>'],
metadata_json: {},
squad_id: '<string>',
squad_role: '<string>',
file_ids: ['<string>'],
tool_ids: ['<string>'],
data_collection: {}
})
};
fetch('https://api.vonative.com/v1/assistants/{assistant_uuid}', 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.vonative.com/v1/assistants/{assistant_uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'system_prompt' => '<string>',
'model' => [
],
'voice' => [
],
'transcriber' => [
],
'first_message' => '<string>',
'first_message_mode' => '<string>',
'max_duration_seconds' => 123,
'silence_timeout_seconds' => 123,
'background_sound' => '<string>',
'background_sound_volume' => 0.5,
'audio_recording_enabled' => true,
'summary_enabled' => true,
'analysis_enabled' => true,
'analysis_profile_id' => '<string>',
'analysis_plan' => [
],
'artifact_plan' => [
],
'start_speaking_plan' => [
],
'stop_speaking_plan' => [
],
'monitor_plan' => [
],
'compliance_plan' => [
],
'guardrail_plan' => [
'enabled' => true,
'mode' => 'enforce',
'strictness' => 'balanced',
'classifier' => [
'provider' => 'openai',
'model' => 'gpt-4.1-mini',
'timeout_ms' => 1200,
'on_error' => 'allow',
'observer_model' => '<string>'
],
'limits' => [
'max_session_turns' => 250,
'max_duration_seconds' => 7215,
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'banned_phrases' => [
'enabled' => false,
'input' => [
'<string>'
],
'output' => [
'<string>'
],
'patterns' => [
'<string>'
],
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'prompt_injection' => [
'enabled' => false,
'sensitivity' => 'medium',
'use_llm' => true,
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'topics' => [
'enabled' => false,
'description' => '',
'allowed' => [
'<string>'
],
'blocked' => [
'<string>'
],
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'custom_rules' => [
[
'id' => '<string>',
'prompt' => '<string>',
'name' => '',
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
]
],
'escalation' => [
'after_violations' => 3,
'action' => [
'type' => 'block',
'message' => '<string>',
'transfer_destination' => '<string>',
'target_node_id' => '<string>'
]
],
'prompt_hardening' => [
'enabled' => true,
'out_of_scope' => 'decline',
'handoff_hint' => '',
'sensitive_advice' => false
],
'tool_safety' => [
'validate_arguments' => true,
'block_duplicate_calls' => true,
'max_tool_steps' => 5
],
'review' => [
'enabled' => false,
'judges' => [
],
'sample_rate' => 1,
'model' => '<string>'
],
'replace' => true
],
'avatar_behavior_profile' => [
],
'background_speech_denoising_plan' => [
],
'keypad_input_plan' => [
],
'observability_plan' => [
],
'transport_configurations' => [
[
]
],
'credentials' => [
[
]
],
'credential_ids' => [
'<string>'
],
'hooks' => [
[
]
],
'server' => [
],
'client_messages' => [
'<string>'
],
'server_messages' => [
'<string>'
],
'metadata_json' => [
],
'squad_id' => '<string>',
'squad_role' => '<string>',
'file_ids' => [
'<string>'
],
'tool_ids' => [
'<string>'
],
'data_collection' => [
]
]),
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.vonative.com/v1/assistants/{assistant_uuid}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"model\": {},\n \"voice\": {},\n \"transcriber\": {},\n \"first_message\": \"<string>\",\n \"first_message_mode\": \"<string>\",\n \"max_duration_seconds\": 123,\n \"silence_timeout_seconds\": 123,\n \"background_sound\": \"<string>\",\n \"background_sound_volume\": 0.5,\n \"audio_recording_enabled\": true,\n \"summary_enabled\": true,\n \"analysis_enabled\": true,\n \"analysis_profile_id\": \"<string>\",\n \"analysis_plan\": {},\n \"artifact_plan\": {},\n \"start_speaking_plan\": {},\n \"stop_speaking_plan\": {},\n \"monitor_plan\": {},\n \"compliance_plan\": {},\n \"guardrail_plan\": {\n \"enabled\": true,\n \"mode\": \"enforce\",\n \"strictness\": \"balanced\",\n \"classifier\": {\n \"provider\": \"openai\",\n \"model\": \"gpt-4.1-mini\",\n \"timeout_ms\": 1200,\n \"on_error\": \"allow\",\n \"observer_model\": \"<string>\"\n },\n \"limits\": {\n \"max_session_turns\": 250,\n \"max_duration_seconds\": 7215,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"banned_phrases\": {\n \"enabled\": false,\n \"input\": [\n \"<string>\"\n ],\n \"output\": [\n \"<string>\"\n ],\n \"patterns\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_injection\": {\n \"enabled\": false,\n \"sensitivity\": \"medium\",\n \"use_llm\": true,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"topics\": {\n \"enabled\": false,\n \"description\": \"\",\n \"allowed\": [\n \"<string>\"\n ],\n \"blocked\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"custom_rules\": [\n {\n \"id\": \"<string>\",\n \"prompt\": \"<string>\",\n \"name\": \"\",\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n }\n ],\n \"escalation\": {\n \"after_violations\": 3,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_hardening\": {\n \"enabled\": true,\n \"out_of_scope\": \"decline\",\n \"handoff_hint\": \"\",\n \"sensitive_advice\": false\n },\n \"tool_safety\": {\n \"validate_arguments\": true,\n \"block_duplicate_calls\": true,\n \"max_tool_steps\": 5\n },\n \"review\": {\n \"enabled\": false,\n \"judges\": [],\n \"sample_rate\": 1,\n \"model\": \"<string>\"\n },\n \"replace\": true\n },\n \"avatar_behavior_profile\": {},\n \"background_speech_denoising_plan\": {},\n \"keypad_input_plan\": {},\n \"observability_plan\": {},\n \"transport_configurations\": [\n {}\n ],\n \"credentials\": [\n {}\n ],\n \"credential_ids\": [\n \"<string>\"\n ],\n \"hooks\": [\n {}\n ],\n \"server\": {},\n \"client_messages\": [\n \"<string>\"\n ],\n \"server_messages\": [\n \"<string>\"\n ],\n \"metadata_json\": {},\n \"squad_id\": \"<string>\",\n \"squad_role\": \"<string>\",\n \"file_ids\": [\n \"<string>\"\n ],\n \"tool_ids\": [\n \"<string>\"\n ],\n \"data_collection\": {}\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.vonative.com/v1/assistants/{assistant_uuid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"model\": {},\n \"voice\": {},\n \"transcriber\": {},\n \"first_message\": \"<string>\",\n \"first_message_mode\": \"<string>\",\n \"max_duration_seconds\": 123,\n \"silence_timeout_seconds\": 123,\n \"background_sound\": \"<string>\",\n \"background_sound_volume\": 0.5,\n \"audio_recording_enabled\": true,\n \"summary_enabled\": true,\n \"analysis_enabled\": true,\n \"analysis_profile_id\": \"<string>\",\n \"analysis_plan\": {},\n \"artifact_plan\": {},\n \"start_speaking_plan\": {},\n \"stop_speaking_plan\": {},\n \"monitor_plan\": {},\n \"compliance_plan\": {},\n \"guardrail_plan\": {\n \"enabled\": true,\n \"mode\": \"enforce\",\n \"strictness\": \"balanced\",\n \"classifier\": {\n \"provider\": \"openai\",\n \"model\": \"gpt-4.1-mini\",\n \"timeout_ms\": 1200,\n \"on_error\": \"allow\",\n \"observer_model\": \"<string>\"\n },\n \"limits\": {\n \"max_session_turns\": 250,\n \"max_duration_seconds\": 7215,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"banned_phrases\": {\n \"enabled\": false,\n \"input\": [\n \"<string>\"\n ],\n \"output\": [\n \"<string>\"\n ],\n \"patterns\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_injection\": {\n \"enabled\": false,\n \"sensitivity\": \"medium\",\n \"use_llm\": true,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"topics\": {\n \"enabled\": false,\n \"description\": \"\",\n \"allowed\": [\n \"<string>\"\n ],\n \"blocked\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"custom_rules\": [\n {\n \"id\": \"<string>\",\n \"prompt\": \"<string>\",\n \"name\": \"\",\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n }\n ],\n \"escalation\": {\n \"after_violations\": 3,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_hardening\": {\n \"enabled\": true,\n \"out_of_scope\": \"decline\",\n \"handoff_hint\": \"\",\n \"sensitive_advice\": false\n },\n \"tool_safety\": {\n \"validate_arguments\": true,\n \"block_duplicate_calls\": true,\n \"max_tool_steps\": 5\n },\n \"review\": {\n \"enabled\": false,\n \"judges\": [],\n \"sample_rate\": 1,\n \"model\": \"<string>\"\n },\n \"replace\": true\n },\n \"avatar_behavior_profile\": {},\n \"background_speech_denoising_plan\": {},\n \"keypad_input_plan\": {},\n \"observability_plan\": {},\n \"transport_configurations\": [\n {}\n ],\n \"credentials\": [\n {}\n ],\n \"credential_ids\": [\n \"<string>\"\n ],\n \"hooks\": [\n {}\n ],\n \"server\": {},\n \"client_messages\": [\n \"<string>\"\n ],\n \"server_messages\": [\n \"<string>\"\n ],\n \"metadata_json\": {},\n \"squad_id\": \"<string>\",\n \"squad_role\": \"<string>\",\n \"file_ids\": [\n \"<string>\"\n ],\n \"tool_ids\": [\n \"<string>\"\n ],\n \"data_collection\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vonative.com/v1/assistants/{assistant_uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"model\": {},\n \"voice\": {},\n \"transcriber\": {},\n \"first_message\": \"<string>\",\n \"first_message_mode\": \"<string>\",\n \"max_duration_seconds\": 123,\n \"silence_timeout_seconds\": 123,\n \"background_sound\": \"<string>\",\n \"background_sound_volume\": 0.5,\n \"audio_recording_enabled\": true,\n \"summary_enabled\": true,\n \"analysis_enabled\": true,\n \"analysis_profile_id\": \"<string>\",\n \"analysis_plan\": {},\n \"artifact_plan\": {},\n \"start_speaking_plan\": {},\n \"stop_speaking_plan\": {},\n \"monitor_plan\": {},\n \"compliance_plan\": {},\n \"guardrail_plan\": {\n \"enabled\": true,\n \"mode\": \"enforce\",\n \"strictness\": \"balanced\",\n \"classifier\": {\n \"provider\": \"openai\",\n \"model\": \"gpt-4.1-mini\",\n \"timeout_ms\": 1200,\n \"on_error\": \"allow\",\n \"observer_model\": \"<string>\"\n },\n \"limits\": {\n \"max_session_turns\": 250,\n \"max_duration_seconds\": 7215,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"banned_phrases\": {\n \"enabled\": false,\n \"input\": [\n \"<string>\"\n ],\n \"output\": [\n \"<string>\"\n ],\n \"patterns\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_injection\": {\n \"enabled\": false,\n \"sensitivity\": \"medium\",\n \"use_llm\": true,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"topics\": {\n \"enabled\": false,\n \"description\": \"\",\n \"allowed\": [\n \"<string>\"\n ],\n \"blocked\": [\n \"<string>\"\n ],\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"custom_rules\": [\n {\n \"id\": \"<string>\",\n \"prompt\": \"<string>\",\n \"name\": \"\",\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n }\n ],\n \"escalation\": {\n \"after_violations\": 3,\n \"action\": {\n \"type\": \"block\",\n \"message\": \"<string>\",\n \"transfer_destination\": \"<string>\",\n \"target_node_id\": \"<string>\"\n }\n },\n \"prompt_hardening\": {\n \"enabled\": true,\n \"out_of_scope\": \"decline\",\n \"handoff_hint\": \"\",\n \"sensitive_advice\": false\n },\n \"tool_safety\": {\n \"validate_arguments\": true,\n \"block_duplicate_calls\": true,\n \"max_tool_steps\": 5\n },\n \"review\": {\n \"enabled\": false,\n \"judges\": [],\n \"sample_rate\": 1,\n \"model\": \"<string>\"\n },\n \"replace\": true\n },\n \"avatar_behavior_profile\": {},\n \"background_speech_denoising_plan\": {},\n \"keypad_input_plan\": {},\n \"observability_plan\": {},\n \"transport_configurations\": [\n {}\n ],\n \"credentials\": [\n {}\n ],\n \"credential_ids\": [\n \"<string>\"\n ],\n \"hooks\": [\n {}\n ],\n \"server\": {},\n \"client_messages\": [\n \"<string>\"\n ],\n \"server_messages\": [\n \"<string>\"\n ],\n \"metadata_json\": {},\n \"squad_id\": \"<string>\",\n \"squad_role\": \"<string>\",\n \"file_ids\": [\n \"<string>\"\n ],\n \"tool_ids\": [\n \"<string>\"\n ],\n \"data_collection\": {}\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "success",
"data": {
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"system_prompt": "<string>",
"model": {},
"voice": {},
"transcriber": {},
"first_message": "<string>",
"first_message_mode": "<string>",
"first_message_interruptions_enabled": true,
"end_call_message": "<string>",
"end_call_phrases": [],
"voicemail_message": "<string>",
"voicemail_detection": {},
"max_duration_seconds": 600,
"silence_timeout_seconds": 30,
"background_sound": "<string>",
"background_sound_url": "<string>",
"background_sound_volume": 0.8,
"model_output_in_messages_enabled": false,
"audio_recording_enabled": false,
"summary_enabled": false,
"analysis_enabled": false,
"analysis_profile_id": "<string>",
"analysis_plan": {},
"artifact_plan": {},
"start_speaking_plan": {},
"stop_speaking_plan": {},
"monitor_plan": {},
"compliance_plan": {},
"guardrail_plan": {
"enabled": true,
"mode": "enforce",
"strictness": "balanced",
"classifier": {
"provider": "openai",
"model": "gpt-4.1-mini",
"timeout_ms": 1200,
"on_error": "allow",
"observer_model": "<string>"
},
"limits": {
"max_session_turns": 250,
"max_duration_seconds": 7215,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"banned_phrases": {
"enabled": false,
"input": [
"<string>"
],
"output": [
"<string>"
],
"patterns": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_injection": {
"enabled": false,
"sensitivity": "medium",
"use_llm": true,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"topics": {
"enabled": false,
"description": "",
"allowed": [
"<string>"
],
"blocked": [
"<string>"
],
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"custom_rules": [
{
"id": "<string>",
"prompt": "<string>",
"name": "",
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
}
],
"escalation": {
"after_violations": 3,
"action": {
"type": "block",
"message": "<string>",
"transfer_destination": "<string>",
"target_node_id": "<string>"
}
},
"prompt_hardening": {
"enabled": true,
"out_of_scope": "decline",
"handoff_hint": "",
"sensitive_advice": false
},
"tool_safety": {
"validate_arguments": true,
"block_duplicate_calls": true,
"max_tool_steps": 5
},
"review": {
"enabled": false,
"judges": [],
"sample_rate": 1,
"model": "<string>"
},
"replace": true
},
"avatar_behavior_profile": {},
"background_speech_denoising_plan": {},
"keypad_input_plan": {},
"observability_plan": {},
"transport_configurations": [],
"credentials": [],
"credential_ids": [],
"hooks": [],
"server": {},
"client_messages": [],
"server_messages": [],
"metadata_json": {},
"squad_id": "<string>",
"squad_role": "<string>",
"file_ids": [],
"tool_ids": [],
"data_collection": {},
"vapi_assistant_id": "<string>",
"status": "<string>",
"organization_id": "<string>",
"owner_id": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
An API key from Dashboard → Developers → API keys.
Path Parameters
Assistant UUID
Body
application/json
Assistant name
Assistant description
System prompt
First message
First message mode
Maximum call duration in seconds
How long to wait before a call is automatically ended due to inactivity.
Background sound played during the call, e.g., 'office', 'off', or a custom URL
Background sound volume (0.0–1.0)
Required range:
0 <= x <= 1Enable audio recording for calls
Enable post-call summary generation
Enable post-call analysis
Analysis profile id (uuid)
Safety checks for this conversation. See Guardrails.
Show child attributes
Show child attributes
Data collection config
⌘I

