Core
Get Lead
Returns a single lead by its ID. The response is wrapped under the ‘lead’ key.
Notes:
- By default, trashed leads are not returned. Pass withTrash=true to include them.
- Caller must have access to the lead; otherwise 404 LEAD_NOT_EXIST.
GET
/
v1.0
/
leads
/
{leadId}
Get Lead
curl --request GET \
--url https://api.lofty.com/v1.0/leads/{leadId} \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v1.0/leads/{leadId}"
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}', 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}",
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}"
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}")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/leads/{leadId}")
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{
"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>"Response
Lead retrieved successfully.
The lead's current opportunity type, derived from on-platform lead scoring. One of: "High Interest", "Sell", "Back to Site", "Back on Market". Null when the lead has no active opportunity.
Available options:
High Interest, Sell, Back to Site, Back on Market Example:
"High Interest"
The visibility scope of the lead. TEAM — Account-wide: visible to all users in this Lofty client account. OFFICE — visible only within a specific office. PERSONAL — visible only to a single agent. Note: TEAM refers to the entire client account (the organization), not the Lofty "Team add-on" product.
⌘I
Get Lead
curl --request GET \
--url https://api.lofty.com/v1.0/leads/{leadId} \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v1.0/leads/{leadId}"
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}', 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}",
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}"
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}")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/leads/{leadId}")
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{
"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>"