Delete call
curl --request DELETE \
--url https://voiceai.theclevermarketing.com/api/user/calls/{call} \
--header 'Authorization: Bearer <token>'import requests
url = "https://voiceai.theclevermarketing.com/api/user/calls/{call}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://voiceai.theclevermarketing.com/api/user/calls/{call}', 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://voiceai.theclevermarketing.com/api/user/calls/{call}",
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://voiceai.theclevermarketing.com/api/user/calls/{call}"
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://voiceai.theclevermarketing.com/api/user/calls/{call}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://voiceai.theclevermarketing.com/api/user/calls/{call}")
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{
"message": "Call deleted successfully"
}
{
"message": "Call not found"
}
Calls
Delete call
Delete a specific call record
DELETE
/
user
/
calls
/
{call}
Delete call
curl --request DELETE \
--url https://voiceai.theclevermarketing.com/api/user/calls/{call} \
--header 'Authorization: Bearer <token>'import requests
url = "https://voiceai.theclevermarketing.com/api/user/calls/{call}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://voiceai.theclevermarketing.com/api/user/calls/{call}', 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://voiceai.theclevermarketing.com/api/user/calls/{call}",
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://voiceai.theclevermarketing.com/api/user/calls/{call}"
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://voiceai.theclevermarketing.com/api/user/calls/{call}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://voiceai.theclevermarketing.com/api/user/calls/{call}")
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{
"message": "Call deleted successfully"
}
{
"message": "Call not found"
}
This endpoint allows you to delete a specific call record that belongs to the authenticated user.
Path Parameters
integer
required
The unique identifier of the call to delete
Response
string
Confirmation message indicating the call was deleted successfully
Error Responses
Show Error Response
Show Error Response
string
Error message when the call is not found or doesn’t belong to the authenticated user
{
"message": "Call deleted successfully"
}
{
"message": "Call not found"
}
Notes
- Only calls that belong to assistants owned by the authenticated user can be deleted
- Once a call is deleted, it cannot be recovered
- This action will permanently remove the call record, including any associated transcript, recording, and metadata
- The call recording file (if exists) will also be deleted from storage
⌘I

