Update an agent's settings
Change an agent’s settings.
Only the fields sent change, and null resets a field to its default. Answers with all of the agent’s settings.
Applies from the next call.
PATCH
/
v1
/
agents
/
{id}
/
settings
Update an agent's settings
curl --request PATCH \
--url https://api.us.phonely.ai/v1/agents/{id}/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"advanced": {
"interruption_word_count": 2,
"is_smart_endpointing_enabled": true,
"knowledge_top_k": 5,
"noise_filter": "<string>",
"response_delay_seconds": 0.225,
"smart_endpointing_wait_seconds": 2,
"transcriber": "<string>"
},
"call": {
"is_sms_continuation_enabled": true,
"is_time_limit_message_skipped": true,
"is_transfer_tone_enabled": true,
"silence_check_message": "<string>",
"silence_check_mode": "<string>",
"silence_check_prompt": "<string>",
"silence_check_retries": 3,
"silence_timeout_seconds": 24,
"time_limit_message": "<string>",
"time_limit_minutes": 30.125,
"time_zone": "<string>"
},
"compliance": {
"is_recording_enabled": true,
"is_transfer_recorded": true
}
}
'import requests
url = "https://api.us.phonely.ai/v1/agents/{id}/settings"
payload = {
"advanced": {
"interruption_word_count": 2,
"is_smart_endpointing_enabled": True,
"knowledge_top_k": 5,
"noise_filter": "<string>",
"response_delay_seconds": 0.225,
"smart_endpointing_wait_seconds": 2,
"transcriber": "<string>"
},
"call": {
"is_sms_continuation_enabled": True,
"is_time_limit_message_skipped": True,
"is_transfer_tone_enabled": True,
"silence_check_message": "<string>",
"silence_check_mode": "<string>",
"silence_check_prompt": "<string>",
"silence_check_retries": 3,
"silence_timeout_seconds": 24,
"time_limit_message": "<string>",
"time_limit_minutes": 30.125,
"time_zone": "<string>"
},
"compliance": {
"is_recording_enabled": True,
"is_transfer_recorded": True
}
}
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({
advanced: {
interruption_word_count: 2,
is_smart_endpointing_enabled: true,
knowledge_top_k: 5,
noise_filter: '<string>',
response_delay_seconds: 0.225,
smart_endpointing_wait_seconds: 2,
transcriber: '<string>'
},
call: {
is_sms_continuation_enabled: true,
is_time_limit_message_skipped: true,
is_transfer_tone_enabled: true,
silence_check_message: '<string>',
silence_check_mode: '<string>',
silence_check_prompt: '<string>',
silence_check_retries: 3,
silence_timeout_seconds: 24,
time_limit_message: '<string>',
time_limit_minutes: 30.125,
time_zone: '<string>'
},
compliance: {is_recording_enabled: true, is_transfer_recorded: true}
})
};
fetch('https://api.us.phonely.ai/v1/agents/{id}/settings', 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.us.phonely.ai/v1/agents/{id}/settings",
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([
'advanced' => [
'interruption_word_count' => 2,
'is_smart_endpointing_enabled' => true,
'knowledge_top_k' => 5,
'noise_filter' => '<string>',
'response_delay_seconds' => 0.225,
'smart_endpointing_wait_seconds' => 2,
'transcriber' => '<string>'
],
'call' => [
'is_sms_continuation_enabled' => true,
'is_time_limit_message_skipped' => true,
'is_transfer_tone_enabled' => true,
'silence_check_message' => '<string>',
'silence_check_mode' => '<string>',
'silence_check_prompt' => '<string>',
'silence_check_retries' => 3,
'silence_timeout_seconds' => 24,
'time_limit_message' => '<string>',
'time_limit_minutes' => 30.125,
'time_zone' => '<string>'
],
'compliance' => [
'is_recording_enabled' => true,
'is_transfer_recorded' => true
]
]),
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.us.phonely.ai/v1/agents/{id}/settings"
payload := strings.NewReader("{\n \"advanced\": {\n \"interruption_word_count\": 2,\n \"is_smart_endpointing_enabled\": true,\n \"knowledge_top_k\": 5,\n \"noise_filter\": \"<string>\",\n \"response_delay_seconds\": 0.225,\n \"smart_endpointing_wait_seconds\": 2,\n \"transcriber\": \"<string>\"\n },\n \"call\": {\n \"is_sms_continuation_enabled\": true,\n \"is_time_limit_message_skipped\": true,\n \"is_transfer_tone_enabled\": true,\n \"silence_check_message\": \"<string>\",\n \"silence_check_mode\": \"<string>\",\n \"silence_check_prompt\": \"<string>\",\n \"silence_check_retries\": 3,\n \"silence_timeout_seconds\": 24,\n \"time_limit_message\": \"<string>\",\n \"time_limit_minutes\": 30.125,\n \"time_zone\": \"<string>\"\n },\n \"compliance\": {\n \"is_recording_enabled\": true,\n \"is_transfer_recorded\": true\n }\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.us.phonely.ai/v1/agents/{id}/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"advanced\": {\n \"interruption_word_count\": 2,\n \"is_smart_endpointing_enabled\": true,\n \"knowledge_top_k\": 5,\n \"noise_filter\": \"<string>\",\n \"response_delay_seconds\": 0.225,\n \"smart_endpointing_wait_seconds\": 2,\n \"transcriber\": \"<string>\"\n },\n \"call\": {\n \"is_sms_continuation_enabled\": true,\n \"is_time_limit_message_skipped\": true,\n \"is_transfer_tone_enabled\": true,\n \"silence_check_message\": \"<string>\",\n \"silence_check_mode\": \"<string>\",\n \"silence_check_prompt\": \"<string>\",\n \"silence_check_retries\": 3,\n \"silence_timeout_seconds\": 24,\n \"time_limit_message\": \"<string>\",\n \"time_limit_minutes\": 30.125,\n \"time_zone\": \"<string>\"\n },\n \"compliance\": {\n \"is_recording_enabled\": true,\n \"is_transfer_recorded\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.us.phonely.ai/v1/agents/{id}/settings")
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 \"advanced\": {\n \"interruption_word_count\": 2,\n \"is_smart_endpointing_enabled\": true,\n \"knowledge_top_k\": 5,\n \"noise_filter\": \"<string>\",\n \"response_delay_seconds\": 0.225,\n \"smart_endpointing_wait_seconds\": 2,\n \"transcriber\": \"<string>\"\n },\n \"call\": {\n \"is_sms_continuation_enabled\": true,\n \"is_time_limit_message_skipped\": true,\n \"is_transfer_tone_enabled\": true,\n \"silence_check_message\": \"<string>\",\n \"silence_check_mode\": \"<string>\",\n \"silence_check_prompt\": \"<string>\",\n \"silence_check_retries\": 3,\n \"silence_timeout_seconds\": 24,\n \"time_limit_message\": \"<string>\",\n \"time_limit_minutes\": 30.125,\n \"time_zone\": \"<string>\"\n },\n \"compliance\": {\n \"is_recording_enabled\": true,\n \"is_transfer_recorded\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"advanced": {
"interruption_word_count": 123,
"is_smart_endpointing_enabled": true,
"knowledge_top_k": 123,
"noise_filter": "<string>",
"response_delay_seconds": 123,
"smart_endpointing_wait_seconds": 123,
"transcriber": "<string>"
},
"agent_id": "<string>",
"call": {
"is_sms_continuation_enabled": true,
"is_time_limit_message_skipped": true,
"is_transfer_tone_enabled": true,
"silence_check_message": "<string>",
"silence_check_mode": "<string>",
"silence_check_prompt": "<string>",
"silence_check_retries": 123,
"silence_timeout_seconds": 123,
"time_limit_message": "<string>",
"time_limit_minutes": 123,
"time_zone": "<string>"
},
"compliance": {
"is_hipaa_enabled": true,
"is_recording_enabled": true,
"is_transfer_recorded": true
},
"object": "agent_settings"
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}Headers
Body
application/json
The settings to change. Only the fields sent change.
Response
Successful Response
How an agent handles calls: timing, recording and compliance, and fine-tuning.
⌘I
Update an agent's settings
curl --request PATCH \
--url https://api.us.phonely.ai/v1/agents/{id}/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"advanced": {
"interruption_word_count": 2,
"is_smart_endpointing_enabled": true,
"knowledge_top_k": 5,
"noise_filter": "<string>",
"response_delay_seconds": 0.225,
"smart_endpointing_wait_seconds": 2,
"transcriber": "<string>"
},
"call": {
"is_sms_continuation_enabled": true,
"is_time_limit_message_skipped": true,
"is_transfer_tone_enabled": true,
"silence_check_message": "<string>",
"silence_check_mode": "<string>",
"silence_check_prompt": "<string>",
"silence_check_retries": 3,
"silence_timeout_seconds": 24,
"time_limit_message": "<string>",
"time_limit_minutes": 30.125,
"time_zone": "<string>"
},
"compliance": {
"is_recording_enabled": true,
"is_transfer_recorded": true
}
}
'import requests
url = "https://api.us.phonely.ai/v1/agents/{id}/settings"
payload = {
"advanced": {
"interruption_word_count": 2,
"is_smart_endpointing_enabled": True,
"knowledge_top_k": 5,
"noise_filter": "<string>",
"response_delay_seconds": 0.225,
"smart_endpointing_wait_seconds": 2,
"transcriber": "<string>"
},
"call": {
"is_sms_continuation_enabled": True,
"is_time_limit_message_skipped": True,
"is_transfer_tone_enabled": True,
"silence_check_message": "<string>",
"silence_check_mode": "<string>",
"silence_check_prompt": "<string>",
"silence_check_retries": 3,
"silence_timeout_seconds": 24,
"time_limit_message": "<string>",
"time_limit_minutes": 30.125,
"time_zone": "<string>"
},
"compliance": {
"is_recording_enabled": True,
"is_transfer_recorded": True
}
}
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({
advanced: {
interruption_word_count: 2,
is_smart_endpointing_enabled: true,
knowledge_top_k: 5,
noise_filter: '<string>',
response_delay_seconds: 0.225,
smart_endpointing_wait_seconds: 2,
transcriber: '<string>'
},
call: {
is_sms_continuation_enabled: true,
is_time_limit_message_skipped: true,
is_transfer_tone_enabled: true,
silence_check_message: '<string>',
silence_check_mode: '<string>',
silence_check_prompt: '<string>',
silence_check_retries: 3,
silence_timeout_seconds: 24,
time_limit_message: '<string>',
time_limit_minutes: 30.125,
time_zone: '<string>'
},
compliance: {is_recording_enabled: true, is_transfer_recorded: true}
})
};
fetch('https://api.us.phonely.ai/v1/agents/{id}/settings', 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.us.phonely.ai/v1/agents/{id}/settings",
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([
'advanced' => [
'interruption_word_count' => 2,
'is_smart_endpointing_enabled' => true,
'knowledge_top_k' => 5,
'noise_filter' => '<string>',
'response_delay_seconds' => 0.225,
'smart_endpointing_wait_seconds' => 2,
'transcriber' => '<string>'
],
'call' => [
'is_sms_continuation_enabled' => true,
'is_time_limit_message_skipped' => true,
'is_transfer_tone_enabled' => true,
'silence_check_message' => '<string>',
'silence_check_mode' => '<string>',
'silence_check_prompt' => '<string>',
'silence_check_retries' => 3,
'silence_timeout_seconds' => 24,
'time_limit_message' => '<string>',
'time_limit_minutes' => 30.125,
'time_zone' => '<string>'
],
'compliance' => [
'is_recording_enabled' => true,
'is_transfer_recorded' => true
]
]),
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.us.phonely.ai/v1/agents/{id}/settings"
payload := strings.NewReader("{\n \"advanced\": {\n \"interruption_word_count\": 2,\n \"is_smart_endpointing_enabled\": true,\n \"knowledge_top_k\": 5,\n \"noise_filter\": \"<string>\",\n \"response_delay_seconds\": 0.225,\n \"smart_endpointing_wait_seconds\": 2,\n \"transcriber\": \"<string>\"\n },\n \"call\": {\n \"is_sms_continuation_enabled\": true,\n \"is_time_limit_message_skipped\": true,\n \"is_transfer_tone_enabled\": true,\n \"silence_check_message\": \"<string>\",\n \"silence_check_mode\": \"<string>\",\n \"silence_check_prompt\": \"<string>\",\n \"silence_check_retries\": 3,\n \"silence_timeout_seconds\": 24,\n \"time_limit_message\": \"<string>\",\n \"time_limit_minutes\": 30.125,\n \"time_zone\": \"<string>\"\n },\n \"compliance\": {\n \"is_recording_enabled\": true,\n \"is_transfer_recorded\": true\n }\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.us.phonely.ai/v1/agents/{id}/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"advanced\": {\n \"interruption_word_count\": 2,\n \"is_smart_endpointing_enabled\": true,\n \"knowledge_top_k\": 5,\n \"noise_filter\": \"<string>\",\n \"response_delay_seconds\": 0.225,\n \"smart_endpointing_wait_seconds\": 2,\n \"transcriber\": \"<string>\"\n },\n \"call\": {\n \"is_sms_continuation_enabled\": true,\n \"is_time_limit_message_skipped\": true,\n \"is_transfer_tone_enabled\": true,\n \"silence_check_message\": \"<string>\",\n \"silence_check_mode\": \"<string>\",\n \"silence_check_prompt\": \"<string>\",\n \"silence_check_retries\": 3,\n \"silence_timeout_seconds\": 24,\n \"time_limit_message\": \"<string>\",\n \"time_limit_minutes\": 30.125,\n \"time_zone\": \"<string>\"\n },\n \"compliance\": {\n \"is_recording_enabled\": true,\n \"is_transfer_recorded\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.us.phonely.ai/v1/agents/{id}/settings")
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 \"advanced\": {\n \"interruption_word_count\": 2,\n \"is_smart_endpointing_enabled\": true,\n \"knowledge_top_k\": 5,\n \"noise_filter\": \"<string>\",\n \"response_delay_seconds\": 0.225,\n \"smart_endpointing_wait_seconds\": 2,\n \"transcriber\": \"<string>\"\n },\n \"call\": {\n \"is_sms_continuation_enabled\": true,\n \"is_time_limit_message_skipped\": true,\n \"is_transfer_tone_enabled\": true,\n \"silence_check_message\": \"<string>\",\n \"silence_check_mode\": \"<string>\",\n \"silence_check_prompt\": \"<string>\",\n \"silence_check_retries\": 3,\n \"silence_timeout_seconds\": 24,\n \"time_limit_message\": \"<string>\",\n \"time_limit_minutes\": 30.125,\n \"time_zone\": \"<string>\"\n },\n \"compliance\": {\n \"is_recording_enabled\": true,\n \"is_transfer_recorded\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"advanced": {
"interruption_word_count": 123,
"is_smart_endpointing_enabled": true,
"knowledge_top_k": 123,
"noise_filter": "<string>",
"response_delay_seconds": 123,
"smart_endpointing_wait_seconds": 123,
"transcriber": "<string>"
},
"agent_id": "<string>",
"call": {
"is_sms_continuation_enabled": true,
"is_time_limit_message_skipped": true,
"is_transfer_tone_enabled": true,
"silence_check_message": "<string>",
"silence_check_mode": "<string>",
"silence_check_prompt": "<string>",
"silence_check_retries": 123,
"silence_timeout_seconds": 123,
"time_limit_message": "<string>",
"time_limit_minutes": 123,
"time_zone": "<string>"
},
"compliance": {
"is_hipaa_enabled": true,
"is_recording_enabled": true,
"is_transfer_recorded": true
},
"object": "agent_settings"
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}
