curl -X GET "https://app.leadtrackr.io/api/leads/getLeads?limit=10&page=1&status=open&sort=createdAt:desc" \
-H "X-API-Key: your-api-key-here"
const params = new URLSearchParams({
limit: "10",
page: "1",
status: "open",
sort: "createdAt:desc"
});
const response = await fetch(
`https://app.leadtrackr.io/api/leads/getLeads?${params}`,
{ headers: { "X-API-Key": "your-api-key-here" } }
);
const data = await response.json();
console.log(data.leads);
console.log(`Page ${data.page} of ${data.totalPages}`);
$query = http_build_query([
"limit" => 10,
"page" => 1,
"status" => "open",
"sort" => "createdAt:desc"
]);
$ch = curl_init("https://app.leadtrackr.io/api/leads/getLeads?" . $query);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-API-Key: your-api-key-here"]
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data["leads"]);
echo "Page " . $data["page"] . " of " . $data["totalPages"];
{
"message": "Leads retrieved",
"leads": [
{
"id": 42,
"status": "open",
"formName": "Contact Form",
"firstName": "John",
"lastName": "Doe",
"phone": "+31612345678",
"email": "john@example.com",
"companyName": "Acme Inc.",
"price": null,
"note": null,
"formData": null,
"userData": null,
"attributionData": null,
"channelFlow": null,
"uniqueIdentifier": "crm-lead-456",
"createdAt": "2026-03-15T10:30:00.000Z"
}
],
"total": 1,
"page": 1,
"limit": 10,
"totalPages": 1,
"hasMore": false
}
Leads
Get Leads
List and filter leads with pagination.
GET
/
api
/
leads
/
getLeads
curl -X GET "https://app.leadtrackr.io/api/leads/getLeads?limit=10&page=1&status=open&sort=createdAt:desc" \
-H "X-API-Key: your-api-key-here"
const params = new URLSearchParams({
limit: "10",
page: "1",
status: "open",
sort: "createdAt:desc"
});
const response = await fetch(
`https://app.leadtrackr.io/api/leads/getLeads?${params}`,
{ headers: { "X-API-Key": "your-api-key-here" } }
);
const data = await response.json();
console.log(data.leads);
console.log(`Page ${data.page} of ${data.totalPages}`);
$query = http_build_query([
"limit" => 10,
"page" => 1,
"status" => "open",
"sort" => "createdAt:desc"
]);
$ch = curl_init("https://app.leadtrackr.io/api/leads/getLeads?" . $query);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-API-Key: your-api-key-here"]
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data["leads"]);
echo "Page " . $data["page"] . " of " . $data["totalPages"];
{
"message": "Leads retrieved",
"leads": [
{
"id": 42,
"status": "open",
"formName": "Contact Form",
"firstName": "John",
"lastName": "Doe",
"phone": "+31612345678",
"email": "john@example.com",
"companyName": "Acme Inc.",
"price": null,
"note": null,
"formData": null,
"userData": null,
"attributionData": null,
"channelFlow": null,
"uniqueIdentifier": "crm-lead-456",
"createdAt": "2026-03-15T10:30:00.000Z"
}
],
"total": 1,
"page": 1,
"limit": 10,
"totalPages": 1,
"hasMore": false
}
Returns a paginated list of leads for the project associated with your API key. Supports filtering, searching, and sorting.
Query parameters
Pagination
Filtering
Filter by lead status. Supports comma-separated values for multiple statuses (e.g.
open,pending).Filter by unique identifier (exact match). Returns leads that match the user-provided CRM or external system ID.
Search
Sorting
Sort field and direction, formatted as
field:direction. Allowed fields: createdAt, firstName, lastName, email, price, status. Directions: asc, desc.Attribution filters
Response
Array of lead objects. See Get Lead for the full lead object shape.
curl -X GET "https://app.leadtrackr.io/api/leads/getLeads?limit=10&page=1&status=open&sort=createdAt:desc" \
-H "X-API-Key: your-api-key-here"
const params = new URLSearchParams({
limit: "10",
page: "1",
status: "open",
sort: "createdAt:desc"
});
const response = await fetch(
`https://app.leadtrackr.io/api/leads/getLeads?${params}`,
{ headers: { "X-API-Key": "your-api-key-here" } }
);
const data = await response.json();
console.log(data.leads);
console.log(`Page ${data.page} of ${data.totalPages}`);
$query = http_build_query([
"limit" => 10,
"page" => 1,
"status" => "open",
"sort" => "createdAt:desc"
]);
$ch = curl_init("https://app.leadtrackr.io/api/leads/getLeads?" . $query);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-API-Key: your-api-key-here"]
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data["leads"]);
echo "Page " . $data["page"] . " of " . $data["totalPages"];
{
"message": "Leads retrieved",
"leads": [
{
"id": 42,
"status": "open",
"formName": "Contact Form",
"firstName": "John",
"lastName": "Doe",
"phone": "+31612345678",
"email": "john@example.com",
"companyName": "Acme Inc.",
"price": null,
"note": null,
"formData": null,
"userData": null,
"attributionData": null,
"channelFlow": null,
"uniqueIdentifier": "crm-lead-456",
"createdAt": "2026-03-15T10:30:00.000Z"
}
],
"total": 1,
"page": 1,
"limit": 10,
"totalPages": 1,
"hasMore": false
}