Skip to main content
DELETE
/
user
/
tools
/
{id}
Delete mid call tool
curl --request DELETE \
  --url https://app.botrep.ai/api/user/tools/{id} \
  --header 'Accept: <accept>' \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
import requests

url = "https://app.botrep.ai/api/user/tools/{id}"

headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>",
"Accept": "<accept>"
}

response = requests.delete(url, headers=headers)

print(response.text)
const options = {
method: 'DELETE',
headers: {
Authorization: '<authorization>',
'Content-Type': '<content-type>',
Accept: '<accept>'
}
};

fetch('https://app.botrep.ai/api/user/tools/{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://app.botrep.ai/api/user/tools/{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 => [
"Accept: <accept>",
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);

$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://app.botrep.ai/api/user/tools/{id}"

req, _ := http.NewRequest("DELETE", url, nil)

req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Accept", "<accept>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.delete("https://app.botrep.ai/api/user/tools/{id}")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.header("Accept", "<accept>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://app.botrep.ai/api/user/tools/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request["Accept"] = '<accept>'

response = http.request(request)
puts response.read_body
{
  "message": "Tool deleted successfully"
}
{
  "message": "Tool not found"
}
This endpoint allows you to permanently delete a mid call tool. This will also remove the tool from all assistants it was assigned to.

Headers

Authorization
string
required
Bearer token for authentication
Content-Type
string
required
Must be application/json
Accept
string
required
Must be application/json

Path Parameters

id
integer
required
The unique identifier of the tool to delete

Response fields

message
string
Success message confirming deletion
{
  "message": "Tool deleted successfully"
}
{
  "message": "Tool not found"
}

Note

When a tool is deleted, it is automatically removed from all assistants. To manage tool assignments without deleting the tool, use:
  • Update Assistant - Use the tool_ids parameter to remove tools from specific assistants