Tools
Delete tool
Delete a tool of either kind. It is taken out of the assistant’s toolIds, and a native tool is switched off in nativeTools, in the same request.
DELETE
/
tool
/
{id}
Delete tool
curl --request DELETE \
--url https://api.verbeo.ai/v1/tool/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.verbeo.ai/v1/tool/{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/tool/{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/tool/{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/tool/{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/tool/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v1/tool/{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 a tool. This cannot be undone. In the same request:
- The tool’s id is taken out of its assistant’s
config.toolIds, so the assistant stops using it from its next call. - A native tool is also switched off in the assistant’s
config.nativeTools(enabled: false), unless it was already off or another native tool of the same name is left. Otherwise the next save of the assistant would add it back. - Past calls keep their record of the tool’s use.
Path parameters
string
required
UUID of the tool, custom or native.
Request
curl -X DELETE "https://api.verbeo.ai/v1/tool/8b2f6c1e-3d4a-4f5b-9c7e-1a2b3c4d5e6f" \
-H "Authorization: Bearer YOUR_API_KEY"
const id = "8b2f6c1e-3d4a-4f5b-9c7e-1a2b3c4d5e6f";
const res = await fetch(`https://api.verbeo.ai/v1/tool/${id}`, {
method: "DELETE",
headers: { Authorization: `Bearer ${process.env.VERBEO_API_KEY}` },
});
// 204 No Content
import os, requests
tool_id = "8b2f6c1e-3d4a-4f5b-9c7e-1a2b3c4d5e6f"
res = requests.delete(
f"https://api.verbeo.ai/v1/tool/{tool_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 tool, or it belongs to another workspace: Tool not found. |
VALIDATION_FAILED | 422 | id is not a UUID. |
Was this page helpful?
⌘I
Delete tool
curl --request DELETE \
--url https://api.verbeo.ai/v1/tool/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.verbeo.ai/v1/tool/{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/tool/{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/tool/{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/tool/{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/tool/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v1/tool/{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