List Leads
Returns a page of leads matching the supplied filters with pagination metadata. Commonly filtered by assignedUserId (leads assigned to a specific agent) and contacted (whether the lead has or hasn’t been reached yet) — see the parameter list for the full set of filters.
Notes:
- limit must be in [1, 100]; otherwise 400 LIMIT_NOT_VALID.
- Use offset for offset-based pagination or scrollId for cursor-based pagination.
- Multiple filters are combined with AND logic; multi-value filters within a single parameter (e.g. allTags, anyTags) apply their documented AND / OR semantics.
curl --request GET \
--url https://api.lofty.com/v1.0/leads \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v1.0/leads"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lofty.com/v1.0/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://api.lofty.com/v1.0/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: <authorization>"
],
]);
$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://api.lofty.com/v1.0/leads"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lofty.com/v1.0/leads")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"get_metadata": {
"collection": "note",
"limit": 10,
"offset": 0,
"total": 50,
"scrollId": "<string>"
},
"leads": [
{
"cannotText": true,
"cannotCall": true,
"cannotEmail": true,
"leadId": 123,
"leadUserId": 123,
"firstName": "<string>",
"lastName": "<string>",
"birthday": "<string>",
"emails": [
"jane.doe@example.com",
"jdoe-work@company.com"
],
"phones": [
"+14155551234",
"+12125559876"
],
"leadSource": 123,
"source": "<string>",
"stageId": 123,
"stage": "<string>",
"assignedUserId": 123,
"assignedUser": "<string>",
"lenderUserId": 123,
"score": 123,
"tags": [
{
"leadId": 123,
"tagId": 123,
"createTime": "<string>",
"updateTime": "<string>",
"tagName": "<string>",
"creatorUserId": 123,
"visibleType": 123
}
],
"teamId": 123,
"streetAddress": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"createTime": "<string>",
"assignTime": "<string>",
"facebook": "<string>",
"twitter": "<string>",
"hiddenFlag": true,
"referredBy": "<string>",
"leadInquiry": {
"priceMin": 1,
"priceMax": 10000000,
"propertyType": [
"Single Family Home",
"Condo"
],
"bedroomsMin": 1,
"bathroomsMin": "1",
"locations": [
{
"city": "Austin",
"stateCode": "TX"
}
],
"id": 123,
"leadUserId": 123,
"bedroomsMax": 123,
"bathroomsMax": "<string>",
"modifyByAgent": true,
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z",
"defaultValue": true
},
"leadPropertyList": [
{
"price": 100000,
"state": "California",
"city": "New York",
"streetAddress": "22348 Regnart RD",
"zipCode": "25401",
"county": "<string>",
"propertyType": "Single Family Home",
"bedrooms": 3,
"bathrooms": 2,
"squareFeet": 100,
"lotSize": 26.33,
"parkingSpace": 1,
"floors": 1,
"mailAddress": true,
"id": 123,
"leadUserId": 123,
"listingId": "<string>",
"autoListingId": 123,
"label": "<string>",
"note": "<string>",
"listingStatus": "<string>",
"labelList": "<string>",
"pictureUrl": "<string>",
"siteListingUrl": "<string>",
"labelType": "<string>"
}
],
"customAttributes": [
{
"attributeName": "<string>",
"attributeType": "number, text, date, anniversary_date, single_select, multi_select, percentage, currency",
"value": "<string>",
"params": "<string>"
}
],
"lastUpdateTime": "<string>",
"groups": [
"VIP Clients",
"Open House Feb"
],
"segments": [
"First-Time Buyers",
"Downtown Area"
],
"unsubscription": true,
"leadTypes": [
2,
5
],
"lastTouch": "<string>",
"lastVisit": "<string>",
"phoneStatuses": [
2,
3
],
"phoneConsentStates": [
"Unknown consent",
"Do Not Call"
],
"assignCompletionStatus": true,
"buyingTimeFrame": "6-12",
"preQual": "Yes",
"houseToSell": "Yes",
"fthb": "Yes",
"withBuyerAgent": "Yes",
"sellingTimeFrame": "1-3",
"mortgage": "Yes",
"buyHouse": "Yes",
"withListingAgent": "Yes",
"opportunity": "High Interest",
"leadFamilyMemberList": [
{
"firstName": "<string>",
"relationship": "<string>",
"lastName": "<string>",
"phones": [
"+14155551234"
],
"emails": [
"spouse@example.com"
],
"birthday": "<string>"
}
],
"pondId": 123,
"pondName": "<string>",
"customRoleList": [
{
"roleId": 123,
"role": "<string>",
"assigneeId": 123,
"assignee": "<string>"
}
],
"language": "<string>",
"ownershipId": 123,
"ownershipScope": "<string>"
}
]
}"<string>""<string>""<string>"Query Parameters
The sort order can be one of the following: Default, LastContact, LastCall, LastEmail, LastActivity, CreateTime, Inquries, DeleteTime, AssignTime, Score, Activity, Communication, HasDrip, HasAlert, Task, Lender, ActivitySearch, ActivityViews, ActivityFavorites, DripStatus, DripOpenRate, AlertFrequency, AlertOpenRate, SCOREV2 or SmartPlanStatus
URL-encoded JSON object with extra filter criteria. Supported keys: leadIds (array of lead IDs), regStartTime and regEndTime (lead creation time, epoch milliseconds), withTrash (boolean). Invalid JSON or a wrong value type makes the whole value ignored, so the request runs without these filters. See Listing leads in the Leads concept page.
Comma-separated source paths to load for each lead, for example data.lead,data.emailList,data.phoneList. These are search-document paths, not response field names: a value such as leadId matches nothing and returns no leads. Always include data.lead, and include data.callOptIn,data.textOptIn,data.emailOptIn if you read cannotCall, cannotText or cannotEmail. Fields that are not loaded come back empty. See Listing leads in the Leads concept page for the path list.
curl --request GET \
--url https://api.lofty.com/v1.0/leads \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v1.0/leads"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lofty.com/v1.0/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://api.lofty.com/v1.0/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: <authorization>"
],
]);
$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://api.lofty.com/v1.0/leads"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lofty.com/v1.0/leads")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"get_metadata": {
"collection": "note",
"limit": 10,
"offset": 0,
"total": 50,
"scrollId": "<string>"
},
"leads": [
{
"cannotText": true,
"cannotCall": true,
"cannotEmail": true,
"leadId": 123,
"leadUserId": 123,
"firstName": "<string>",
"lastName": "<string>",
"birthday": "<string>",
"emails": [
"jane.doe@example.com",
"jdoe-work@company.com"
],
"phones": [
"+14155551234",
"+12125559876"
],
"leadSource": 123,
"source": "<string>",
"stageId": 123,
"stage": "<string>",
"assignedUserId": 123,
"assignedUser": "<string>",
"lenderUserId": 123,
"score": 123,
"tags": [
{
"leadId": 123,
"tagId": 123,
"createTime": "<string>",
"updateTime": "<string>",
"tagName": "<string>",
"creatorUserId": 123,
"visibleType": 123
}
],
"teamId": 123,
"streetAddress": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"createTime": "<string>",
"assignTime": "<string>",
"facebook": "<string>",
"twitter": "<string>",
"hiddenFlag": true,
"referredBy": "<string>",
"leadInquiry": {
"priceMin": 1,
"priceMax": 10000000,
"propertyType": [
"Single Family Home",
"Condo"
],
"bedroomsMin": 1,
"bathroomsMin": "1",
"locations": [
{
"city": "Austin",
"stateCode": "TX"
}
],
"id": 123,
"leadUserId": 123,
"bedroomsMax": 123,
"bathroomsMax": "<string>",
"modifyByAgent": true,
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z",
"defaultValue": true
},
"leadPropertyList": [
{
"price": 100000,
"state": "California",
"city": "New York",
"streetAddress": "22348 Regnart RD",
"zipCode": "25401",
"county": "<string>",
"propertyType": "Single Family Home",
"bedrooms": 3,
"bathrooms": 2,
"squareFeet": 100,
"lotSize": 26.33,
"parkingSpace": 1,
"floors": 1,
"mailAddress": true,
"id": 123,
"leadUserId": 123,
"listingId": "<string>",
"autoListingId": 123,
"label": "<string>",
"note": "<string>",
"listingStatus": "<string>",
"labelList": "<string>",
"pictureUrl": "<string>",
"siteListingUrl": "<string>",
"labelType": "<string>"
}
],
"customAttributes": [
{
"attributeName": "<string>",
"attributeType": "number, text, date, anniversary_date, single_select, multi_select, percentage, currency",
"value": "<string>",
"params": "<string>"
}
],
"lastUpdateTime": "<string>",
"groups": [
"VIP Clients",
"Open House Feb"
],
"segments": [
"First-Time Buyers",
"Downtown Area"
],
"unsubscription": true,
"leadTypes": [
2,
5
],
"lastTouch": "<string>",
"lastVisit": "<string>",
"phoneStatuses": [
2,
3
],
"phoneConsentStates": [
"Unknown consent",
"Do Not Call"
],
"assignCompletionStatus": true,
"buyingTimeFrame": "6-12",
"preQual": "Yes",
"houseToSell": "Yes",
"fthb": "Yes",
"withBuyerAgent": "Yes",
"sellingTimeFrame": "1-3",
"mortgage": "Yes",
"buyHouse": "Yes",
"withListingAgent": "Yes",
"opportunity": "High Interest",
"leadFamilyMemberList": [
{
"firstName": "<string>",
"relationship": "<string>",
"lastName": "<string>",
"phones": [
"+14155551234"
],
"emails": [
"spouse@example.com"
],
"birthday": "<string>"
}
],
"pondId": 123,
"pondName": "<string>",
"customRoleList": [
{
"roleId": 123,
"role": "<string>",
"assigneeId": 123,
"assignee": "<string>"
}
],
"language": "<string>",
"ownershipId": 123,
"ownershipScope": "<string>"
}
]
}"<string>""<string>""<string>"