Update an agent
curl --request PATCH \
--url https://api.verbose.cx/v1/agents/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"system_prompt": "<string>",
"channel": "sms",
"goal": "<string>",
"greeting": "<string>",
"voice_id": "<string>",
"language": "en-US"
}
'import requests
url = "https://api.verbose.cx/v1/agents/{id}"
payload = {
"name": "<string>",
"system_prompt": "<string>",
"channel": "sms",
"goal": "<string>",
"greeting": "<string>",
"voice_id": "<string>",
"language": "en-US"
}
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>',
system_prompt: '<string>',
channel: 'sms',
goal: '<string>',
greeting: '<string>',
voice_id: '<string>',
language: 'en-US'
})
};
fetch('https://api.verbose.cx/v1/agents/{id}', 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.verbose.cx/v1/agents/{id}",
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>',
'system_prompt' => '<string>',
'channel' => 'sms',
'goal' => '<string>',
'greeting' => '<string>',
'voice_id' => '<string>',
'language' => 'en-US'
]),
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.verbose.cx/v1/agents/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"channel\": \"sms\",\n \"goal\": \"<string>\",\n \"greeting\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"language\": \"en-US\"\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.verbose.cx/v1/agents/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"channel\": \"sms\",\n \"goal\": \"<string>\",\n \"greeting\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"language\": \"en-US\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbose.cx/v1/agents/{id}")
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 \"system_prompt\": \"<string>\",\n \"channel\": \"sms\",\n \"goal\": \"<string>\",\n \"greeting\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"language\": \"en-US\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true
}{
"ok": false,
"error": "Not found"
}Agents
Update an agent
PATCH
/
v1
/
agents
/
{id}
Update an agent
curl --request PATCH \
--url https://api.verbose.cx/v1/agents/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"system_prompt": "<string>",
"channel": "sms",
"goal": "<string>",
"greeting": "<string>",
"voice_id": "<string>",
"language": "en-US"
}
'import requests
url = "https://api.verbose.cx/v1/agents/{id}"
payload = {
"name": "<string>",
"system_prompt": "<string>",
"channel": "sms",
"goal": "<string>",
"greeting": "<string>",
"voice_id": "<string>",
"language": "en-US"
}
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>',
system_prompt: '<string>',
channel: 'sms',
goal: '<string>',
greeting: '<string>',
voice_id: '<string>',
language: 'en-US'
})
};
fetch('https://api.verbose.cx/v1/agents/{id}', 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.verbose.cx/v1/agents/{id}",
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>',
'system_prompt' => '<string>',
'channel' => 'sms',
'goal' => '<string>',
'greeting' => '<string>',
'voice_id' => '<string>',
'language' => 'en-US'
]),
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.verbose.cx/v1/agents/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"channel\": \"sms\",\n \"goal\": \"<string>\",\n \"greeting\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"language\": \"en-US\"\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.verbose.cx/v1/agents/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"channel\": \"sms\",\n \"goal\": \"<string>\",\n \"greeting\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"language\": \"en-US\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbose.cx/v1/agents/{id}")
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 \"system_prompt\": \"<string>\",\n \"channel\": \"sms\",\n \"goal\": \"<string>\",\n \"greeting\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"language\": \"en-US\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true
}{
"ok": false,
"error": "Not found"
}Authorizations
Your API key (as_live_…), created under Settings → API keys.
Path Parameters
Body
application/json
Response
Success
Example:
true
Was this page helpful?
⌘I