Saved Searches
List saved searches
Returns every saved search of the lead, including its conditions and alert delivery settings. Returns an empty collection when the lead has none.
GET
/
v1.0
/
leads
/
{leadId}
/
savedSearches
List the saved searches of a lead
curl --request GET \
--url https://api.lofty.com/v1.0/leads/{leadId}/savedSearches \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v1.0/leads/{leadId}/savedSearches"
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/{leadId}/savedSearches', 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/{leadId}/savedSearches",
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/{leadId}/savedSearches"
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/{leadId}/savedSearches")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/leads/{leadId}/savedSearches")
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{
"savedSearches": [
{
"id": 88123456789,
"leadId": 651095960136641,
"name": "Cary 3BR under 600k",
"source": "AGENT_CREATED",
"saleType": "SELLER",
"status": "ACTIVE",
"alertFrequency": "NEVER",
"schedule": {
"MON": "AM",
"WED": "AM"
},
"lastSentAt": "2026-08-25T13:00:00Z",
"createdAt": "2025-11-02T18:22:31Z",
"updatedAt": "2026-07-14T09:05:12Z",
"criteria": {
"locations": {
"cities": [
"<string>"
],
"zipCodes": [
"<string>"
],
"excludedZipCodes": [
"<string>"
],
"counties": [
"<string>"
],
"neighborhoods": [
"<string>"
],
"subdivisions": [
"<string>"
],
"communities": [
"<string>"
],
"areas": [
"<string>"
],
"schoolDistricts": [
"<string>"
],
"schools": [
"<string>"
],
"streetNames": [
"<string>"
],
"states": [
"<string>"
],
"mapPath": [
{
"lat": 37.97717892480743,
"lng": -122.11879621484377
}
],
"mapCircles": [
{
"center": {
"lat": 37.97717892480743,
"lng": -122.11879621484377
},
"radius": 3,
"unit": "miles"
}
],
"elementarySchools": [
"<string>"
],
"middleSchools": [
"<string>"
],
"highSchools": [
"<string>"
]
},
"priceMin": 350000,
"priceMax": 600000,
"soldPriceMin": 123,
"soldPriceMax": 123,
"bedsMin": 3,
"bedsMax": 123,
"bathsMin": 2,
"bathsMax": 123,
"sqftMin": 123,
"sqftMax": 123,
"lotSizeMin": 123,
"lotSizeMax": 123,
"yearBuiltMin": 123,
"yearBuiltMax": 123,
"daysOnSite": 7,
"daysSold": 45,
"listingType": "all-listing",
"propertyTypes": [
"Single Family Residence"
],
"propertySubTypes": [
"<string>"
],
"listingStatuses": [
"Active"
],
"purchaseTypes": [
"FOR_SALE"
],
"keywords": [
"<string>"
],
"includeOpenHouse": true
},
"unmappedCriteria": [
"<string>"
],
"hasUnmappedCriteria": true,
"category": "PROPERTY_ALERT",
"frequencyBeforePause": "NEVER",
"recipientEmails": [
"jane@example.com"
],
"emailSubject": "<string>",
"sendCopyToAgent": true
}
]
}Path Parameters
Query Parameters
Response
Success. A request rejected by validation or by a business rule also answers HTTP 200, with {"code": <error code>, "message": "..."} in place of the result: check code in the body, not the HTTP status. Codes are listed under Errors in the Saved Searches section.
⌘I
List the saved searches of a lead
curl --request GET \
--url https://api.lofty.com/v1.0/leads/{leadId}/savedSearches \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v1.0/leads/{leadId}/savedSearches"
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/{leadId}/savedSearches', 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/{leadId}/savedSearches",
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/{leadId}/savedSearches"
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/{leadId}/savedSearches")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/leads/{leadId}/savedSearches")
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{
"savedSearches": [
{
"id": 88123456789,
"leadId": 651095960136641,
"name": "Cary 3BR under 600k",
"source": "AGENT_CREATED",
"saleType": "SELLER",
"status": "ACTIVE",
"alertFrequency": "NEVER",
"schedule": {
"MON": "AM",
"WED": "AM"
},
"lastSentAt": "2026-08-25T13:00:00Z",
"createdAt": "2025-11-02T18:22:31Z",
"updatedAt": "2026-07-14T09:05:12Z",
"criteria": {
"locations": {
"cities": [
"<string>"
],
"zipCodes": [
"<string>"
],
"excludedZipCodes": [
"<string>"
],
"counties": [
"<string>"
],
"neighborhoods": [
"<string>"
],
"subdivisions": [
"<string>"
],
"communities": [
"<string>"
],
"areas": [
"<string>"
],
"schoolDistricts": [
"<string>"
],
"schools": [
"<string>"
],
"streetNames": [
"<string>"
],
"states": [
"<string>"
],
"mapPath": [
{
"lat": 37.97717892480743,
"lng": -122.11879621484377
}
],
"mapCircles": [
{
"center": {
"lat": 37.97717892480743,
"lng": -122.11879621484377
},
"radius": 3,
"unit": "miles"
}
],
"elementarySchools": [
"<string>"
],
"middleSchools": [
"<string>"
],
"highSchools": [
"<string>"
]
},
"priceMin": 350000,
"priceMax": 600000,
"soldPriceMin": 123,
"soldPriceMax": 123,
"bedsMin": 3,
"bedsMax": 123,
"bathsMin": 2,
"bathsMax": 123,
"sqftMin": 123,
"sqftMax": 123,
"lotSizeMin": 123,
"lotSizeMax": 123,
"yearBuiltMin": 123,
"yearBuiltMax": 123,
"daysOnSite": 7,
"daysSold": 45,
"listingType": "all-listing",
"propertyTypes": [
"Single Family Residence"
],
"propertySubTypes": [
"<string>"
],
"listingStatuses": [
"Active"
],
"purchaseTypes": [
"FOR_SALE"
],
"keywords": [
"<string>"
],
"includeOpenHouse": true
},
"unmappedCriteria": [
"<string>"
],
"hasUnmappedCriteria": true,
"category": "PROPERTY_ALERT",
"frequencyBeforePause": "NEVER",
"recipientEmails": [
"jane@example.com"
],
"emailSubject": "<string>",
"sendCopyToAgent": true
}
]
}