Delete Lead List
curl --request DELETE \
--url https://app.tuco.ai/api/lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"listId": "<string>",
"deleteLeads": true
}
'import requests
url = "https://app.tuco.ai/api/lists"
payload = {
"listId": "<string>",
"deleteLeads": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({listId: '<string>', deleteLeads: true})
};
fetch('https://app.tuco.ai/api/lists', 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.tuco.ai/api/lists",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'listId' => '<string>',
'deleteLeads' => true
]),
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://app.tuco.ai/api/lists"
payload := strings.NewReader("{\n \"listId\": \"<string>\",\n \"deleteLeads\": true\n}")
req, _ := http.NewRequest("DELETE", 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.delete("https://app.tuco.ai/api/lists")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"listId\": \"<string>\",\n \"deleteLeads\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tuco.ai/api/lists")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"listId\": \"<string>\",\n \"deleteLeads\": true\n}"
response = http.request(request)
puts response.read_bodyLines & Leads
Delete Lead List
Delete a Tuco lead list, keeping or deleting the leads inside it. Bearer-token REST endpoint.
DELETE
/
api
/
lists
Delete Lead List
curl --request DELETE \
--url https://app.tuco.ai/api/lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"listId": "<string>",
"deleteLeads": true
}
'import requests
url = "https://app.tuco.ai/api/lists"
payload = {
"listId": "<string>",
"deleteLeads": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({listId: '<string>', deleteLeads: true})
};
fetch('https://app.tuco.ai/api/lists', 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.tuco.ai/api/lists",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'listId' => '<string>',
'deleteLeads' => true
]),
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://app.tuco.ai/api/lists"
payload := strings.NewReader("{\n \"listId\": \"<string>\",\n \"deleteLeads\": true\n}")
req, _ := http.NewRequest("DELETE", 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.delete("https://app.tuco.ai/api/lists")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"listId\": \"<string>\",\n \"deleteLeads\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tuco.ai/api/lists")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"listId\": \"<string>\",\n \"deleteLeads\": true\n}"
response = http.request(request)
puts response.read_bodyThe Try it panel runs against production (
https://app.tuco.ai) with the key you paste
into it. There is no sandbox — a request from this page permanently deletes a real list.A list owns leads.
listId is what you pass to
POST /api/leads to file new leads somewhere specific, and to
POST /api/leads/check-availability to check a
whole list at once. These endpoints are how you get a listId without opening the dashboard.The list id goes in the request body, not the URL.
DELETE /api/lists with no body returns
400 List ID is required. Some HTTP clients drop bodies on DELETE by default — if you get that
error with an id you know is correct, that is why.Authentication
Pass your workspace API key as a Bearer token, or use a Clerk session token.Authorization: Bearer tuco_xxxxxxxxxxxxx
Request body
string
required
The list to delete, from
GET /api/lists.boolean
default:"false"
What happens to the leads inside it.
| Value | Result |
|---|---|
false (default) | The list is removed; its leads stay in the workspace as unassigned. |
true | The leads are deleted too, along with their activities, messages and conversations. |
deleteLeads: true is permanent and takes the conversation history with it.Example
curl -X DELETE "https://app.tuco.ai/api/lists" \
-H "Authorization: Bearer tuco_xxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "listId": "6ac3f1a271adb32c88d566f1", "deleteLeads": false }'
Success (200 OK)
{
"message": "List deleted successfully",
"deletedLeads": "leads moved to unassigned"
}
deleteLeads: true, deletedLeads reads "all leads deleted".
Errors
| Status | When | Body |
|---|---|---|
400 | listId missing | { "error": "List ID is required" } |
401 | Missing or invalid API key | { "error": "Unauthorized" } |
404 | No list with that id in your workspace | { "error": "List not found" } |