Get & Search Leads
curl --request GET \
--url https://app.tuco.ai/api/leads \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.tuco.ai/api/leads"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.tuco.ai/api/leads', 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/leads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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://app.tuco.ai/api/leads"
req, _ := http.NewRequest("GET", 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.get("https://app.tuco.ai/api/leads")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tuco.ai/api/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyLines & Leads
Get & Search Leads
Retrieve, list, and search leads in a workspace — find a lead by name, email, phone, or company, fetch one by id, or page through them all. Bearer-token auth.
GET
/
api
/
leads
Get & Search Leads
curl --request GET \
--url https://app.tuco.ai/api/leads \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.tuco.ai/api/leads"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.tuco.ai/api/leads', 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/leads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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://app.tuco.ai/api/leads"
req, _ := http.NewRequest("GET", 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.get("https://app.tuco.ai/api/leads")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tuco.ai/api/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyEndpoint
- Method:
GET - Path:
/api/leads
Query Parameters
id(string, optional) – return a single lead by its_id(24-char ObjectId). When present, the other filters are ignored.search(string, optional) – case‑insensitive match across first name, last name, email, phone, and company name. This is how you find a specific lead — pass a phone number or email to locate one contact.listId(string, optional) – restrict to a specific Tuco list.page(number, optional, default1) – page number.limit(number, optional, default50, max50) – page size.
Find a lead by phone or email
# by phone
curl "https://app.tuco.ai/api/leads?search=%2B12025551234&limit=1" \
-H "Authorization: Bearer tuco_sk_xxxxxxxxxxxxx"
# by email
curl "https://app.tuco.ai/api/leads?search=john@example.com&limit=1" \
-H "Authorization: Bearer tuco_sk_xxxxxxxxxxxxx"
Fetch one lead by id, or page through a list
GET /api/leads?id=667f1f77bcf86cd799439012
GET /api/leads?listId=507f1f77bcf86cd799439011&search=john&page=1&limit=50
Authorization: Bearer tuco_sk_xxxxxxxxxxxxx
Response
{
"leads": [
{
"_id": "667f1f77bcf86cd799439012",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"phone": "+12025551234",
"companyName": "Acme Corp",
"jobTitle": "CEO",
"listId": "507f1f77bcf86cd799439011",
"workspaceId": "org_123",
"createdAt": "2025-10-14T10:30:00Z",
"updatedAt": "2025-10-14T10:30:00Z"
}
],
"lists": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "Prospects – October",
"workspaceId": "org_123"
}
],
"pagination": {
"page": 1,
"limit": 50,
"totalCount": 1,
"totalPages": 1
}
}
401) or invalid query parameters (400) are returned with clear JSON messages.