Updates an existing lead. Caller must have manage permission on the lead.
curl --request PUT \
--url https://api.lofty.com/v1.0/leads/{leadId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"cannotText": true,
"cannotCall": true,
"cannotEmail": true,
"firstName": "Bob",
"lastName": "Li",
"emails": [
"jane.doe@example.com",
"jdoe-work@company.com"
],
"phones": [
"+14155551234",
"+12125559876"
],
"leadTypes": [
2,
5
],
"assignedUserId": 10000000514,
"streetAddress": "The White House,1600 Pennsylvania Avenue NW",
"city": "Washington DC",
"state": "Washington DC",
"zipCode": "20500",
"referredBy": "Jeremy Kelly",
"isHidden": false,
"stage": "Pending",
"groups": [
"VIP Clients",
"Open House Feb"
],
"segments": [
"First-Time Buyers",
"Downtown Area"
],
"tags": [
"Hot Lead",
"Zillow"
],
"tagsAdd": [
"Referral",
"Pre-Approved"
],
"source": "Open House",
"inquiry": {
"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
},
"property": {
"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>",
"priceMax": 10000000,
"priceMin": 100000
},
"customAttributeList": [
{
"attributeName": "<string>",
"attributeType": "number, text, date, single_select, multi_select, percentage, currency",
"value": "<string>",
"params": "<string>"
}
],
"birthday": "Jun 5, 2001",
"buyingTimeFrame": "6-12",
"preQual": "Yes",
"houseToSell": "Yes",
"fthb": "Yes",
"withBuyerAgent": "Yes",
"sellingTimeFrame": "1-3",
"mortgage": "Yes",
"buyHouse": "Yes",
"withListingAgent": "Yes",
"leadFamilyMemberList": [
{
"firstName": "<string>",
"relationship": "<string>",
"lastName": "<string>",
"phones": [
"+14155551234"
],
"emails": [
"spouse@example.com"
],
"birthday": "<string>"
}
],
"language": "en",
"ownershipId": 123,
"ownershipScope": "TEAM, OFFICE, PERSONAL",
"unsubscription": true
}
'{
"leadId": 651095960136641
}Documentation Index
Fetch the complete documentation index at: https://developer.lofty.com/llms.txt
Use this file to discover all available pages before exploring further.
firstName, lastName, groups, segments are truncated to 30 characters; tags / tagsAdd to 64 characters. The API returns success with no error. Validate input length before sending.ID of the lead to update.
x >= 1Lead update payload.
false: can send message to the lead
false: can call to the lead
false: can email to the lead
The first/given name of the lead Caution: Max limit 30 characters. If you exceed the limit, the import will succuss, but only import 30 characters in front.
"Bob"
The last/family name of the lead Caution: Max limit 30 characters. If you exceed the limit, the import will succuss, but only import 30 characters in front.
"Li"
A list of email addresses associated with the lead
[
"jane.doe@example.com",
"jdoe-work@company.com"
]A list of phone numbers associated with the lead. (No more than 20 characters per phone)
["+14155551234", "+12125559876"]Types of lead, expressed by ID. Type ID : Other (-1), Seller (1), Buyer (2), Renter (5), Investor (6), Agent (7),Homeowner (8), Landlord (9)
[2, 5]Id of the agent assigned to this contact
10000000514
The streetAddress associated with the lead. Deprecated: please use the streetAddress field in property instead.
"The White House,1600 Pennsylvania Avenue NW"
The city associated with the lead. Deprecated: please use the city field in property instead.
"Washington DC"
The state associated with the lead. Deprecated: please use the state field in property instead.
"Washington DC"
ZipCode. Deprecated: please use the zipCode field in property instead.
"20500"
The referee of the lead
"Jeremy Kelly"
The lead is hidden or not
false
The stage the lead is in, less than 20 characters
"Pending"
The groups the lead is in Caution: Max limit 30 characters.If you exceed the limit,the import will success , but only import 30 characters in front. deprecated, use segments instead.
["VIP Clients", "Open House Feb"]The segments the lead is in Caution: Max limit 30 characters.If you exceed the limit,the import will success , but only import 30 characters in front.
["First-Time Buyers", "Downtown Area"]The tags associated with the lead. All existing tags will be updated based on this call Caution: Max limit 64 characters.If you exceed the limit,the import will success , but only import 64 characters in front.
["Hot Lead", "Zillow"]The tags associated with the lead. All existing tags will be retained, only add new tags base on this call Caution: Max limit 64 characters. If you exceed the limit, the import will success, but only import 64 characters in front.
["Referral", "Pre-Approved"]The source of the lead
"Open House"
LeadInquirys
Show child attributes
Lead property or mailing address details
Show child attributes
User customized field
Show child attributes
The birthday of the lead(pattern:MMM d, yyyy)
"Jun 5, 2001"
buying time frame, 1-3, 3-6, 6-12, 12+, Just Looking, Refinancing.
"6-12"
Pre-qual, Yes or No.
"Yes"
House to Sell, Yes or No.
"Yes"
first time home buyer, Yes or No.
"Yes"
With buyer Agent, Yes or No.
"Yes"
selling time frame, 1-3, 3-6, 6-12, 12+, Just Looking, Refinancing.
"1-3"
Mortgage, Yes or No.
"Yes"
Buy a house, Yes or No.
"Yes"
With listing agent, Yes or No.
"Yes"
A list of family members associated with the lead. You can add up to 4 family members.
Show child attributes
The lead's abbreviated language, en, fr, de, es, zh-CN, zh-TW, ja
"en"
Specific owner id of lead, such as office id and agent id.
Ownership level of lead. (If it is office or personal, you need to pass a value to ownershipID to specify the entity.)
"TEAM, OFFICE, PERSONAL"
Unsubscription the email
Show child attributes
Lead updated.
Response containing the lead ID.
ID of the lead.
651095960136641
curl --request PUT \
--url https://api.lofty.com/v1.0/leads/{leadId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"cannotText": true,
"cannotCall": true,
"cannotEmail": true,
"firstName": "Bob",
"lastName": "Li",
"emails": [
"jane.doe@example.com",
"jdoe-work@company.com"
],
"phones": [
"+14155551234",
"+12125559876"
],
"leadTypes": [
2,
5
],
"assignedUserId": 10000000514,
"streetAddress": "The White House,1600 Pennsylvania Avenue NW",
"city": "Washington DC",
"state": "Washington DC",
"zipCode": "20500",
"referredBy": "Jeremy Kelly",
"isHidden": false,
"stage": "Pending",
"groups": [
"VIP Clients",
"Open House Feb"
],
"segments": [
"First-Time Buyers",
"Downtown Area"
],
"tags": [
"Hot Lead",
"Zillow"
],
"tagsAdd": [
"Referral",
"Pre-Approved"
],
"source": "Open House",
"inquiry": {
"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
},
"property": {
"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>",
"priceMax": 10000000,
"priceMin": 100000
},
"customAttributeList": [
{
"attributeName": "<string>",
"attributeType": "number, text, date, single_select, multi_select, percentage, currency",
"value": "<string>",
"params": "<string>"
}
],
"birthday": "Jun 5, 2001",
"buyingTimeFrame": "6-12",
"preQual": "Yes",
"houseToSell": "Yes",
"fthb": "Yes",
"withBuyerAgent": "Yes",
"sellingTimeFrame": "1-3",
"mortgage": "Yes",
"buyHouse": "Yes",
"withListingAgent": "Yes",
"leadFamilyMemberList": [
{
"firstName": "<string>",
"relationship": "<string>",
"lastName": "<string>",
"phones": [
"+14155551234"
],
"emails": [
"spouse@example.com"
],
"birthday": "<string>"
}
],
"language": "en",
"ownershipId": 123,
"ownershipScope": "TEAM, OFFICE, PERSONAL",
"unsubscription": true
}
'{
"leadId": 651095960136641
}