Assistants
Delete assistant
Permanently delete an assistant. Campaigns that use it are deleted with it, and phone numbers routed to it stop answering.
DELETE
/
assistant
/
{id}
Delete assistant
curl --request DELETE \
--url https://api.verbeo.ai/v1/assistant/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.verbeo.ai/v1/assistant/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.verbeo.ai/v1/assistant/{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.verbeo.ai/v1/assistant/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.verbeo.ai/v1/assistant/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.verbeo.ai/v1/assistant/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v1/assistant/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyDeletes an assistant. This cannot be undone.
Deleting an assistant deletes more than the assistant:
- Campaigns that use it, and their contact lists, are deleted.
- Phone numbers routed to it are unassigned — an inbound number stops being answered.
- Its tools, knowledge-base links and SIP credentials are deleted.
- Call history is kept. Past calls stay in your logs with the assistant reference cleared.
Path parameters
string
required
UUID of the assistant.
Request
curl -X DELETE "https://api.verbeo.ai/v1/assistant/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_KEY"
const id = "550e8400-e29b-41d4-a716-446655440000";
const res = await fetch(`https://api.verbeo.ai/v1/assistant/${id}`, {
method: "DELETE",
headers: { Authorization: `Bearer ${process.env.VERBEO_API_KEY}` },
});
// 204 No Content
import os, requests
assistant_id = "550e8400-e29b-41d4-a716-446655440000"
res = requests.delete(
f"https://api.verbeo.ai/v1/assistant/{assistant_id}",
headers={"Authorization": f"Bearer {os.environ['VERBEO_API_KEY']}"},
)
assert res.status_code == 204
Response
204 No Content, with no body.
Errors
| Code | Status | When |
|---|---|---|
NOT_FOUND | 404 | No such assistant, or it belongs to another workspace. |
VALIDATION_FAILED | 422 | id is not a UUID. |
Was this page helpful?
⌘I
Delete assistant
curl --request DELETE \
--url https://api.verbeo.ai/v1/assistant/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.verbeo.ai/v1/assistant/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.verbeo.ai/v1/assistant/{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.verbeo.ai/v1/assistant/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.verbeo.ai/v1/assistant/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.verbeo.ai/v1/assistant/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v1/assistant/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body