Integrations
Brokermint — Sync Lead
Callback endpoint for Brokermint to push contact updates into Lofty. Not intended for general external callers.
The target contact must have been previously linked to a Brokermint record through the Lofty UI’s Brokermint Integration. Without this link the response body contains a non-zero code despite HTTP 200.
PUT
/
v1.0
/
brokermint
/
lead
Brokermint — Sync Lead
curl --request PUT \
--url https://api.lofty.com/v1.0/brokermint/lead \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"contactType": "<string>",
"externalId": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"phone": "<string>",
"bmPrivate": true,
"leadSource": "<string>"
}
'import requests
url = "https://api.lofty.com/v1.0/brokermint/lead"
payload = {
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"contactType": "<string>",
"externalId": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"phone": "<string>",
"bmPrivate": True,
"leadSource": "<string>"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
email: '<string>',
firstName: '<string>',
lastName: '<string>',
contactType: '<string>',
externalId: '<string>',
address: '<string>',
city: '<string>',
state: '<string>',
zip: '<string>',
phone: '<string>',
bmPrivate: true,
leadSource: '<string>'
})
};
fetch('https://api.lofty.com/v1.0/brokermint/lead', 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/brokermint/lead",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'firstName' => '<string>',
'lastName' => '<string>',
'contactType' => '<string>',
'externalId' => '<string>',
'address' => '<string>',
'city' => '<string>',
'state' => '<string>',
'zip' => '<string>',
'phone' => '<string>',
'bmPrivate' => true,
'leadSource' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lofty.com/v1.0/brokermint/lead"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"contactType\": \"<string>\",\n \"externalId\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\",\n \"phone\": \"<string>\",\n \"bmPrivate\": true,\n \"leadSource\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.lofty.com/v1.0/brokermint/lead")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"contactType\": \"<string>\",\n \"externalId\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\",\n \"phone\": \"<string>\",\n \"bmPrivate\": true,\n \"leadSource\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/brokermint/lead")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"contactType\": \"<string>\",\n \"externalId\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\",\n \"phone\": \"<string>\",\n \"bmPrivate\": true,\n \"leadSource\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success"
}"<string>""<string>"Body
application/json
⌘I
Brokermint — Sync Lead
curl --request PUT \
--url https://api.lofty.com/v1.0/brokermint/lead \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"contactType": "<string>",
"externalId": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"phone": "<string>",
"bmPrivate": true,
"leadSource": "<string>"
}
'import requests
url = "https://api.lofty.com/v1.0/brokermint/lead"
payload = {
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"contactType": "<string>",
"externalId": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"phone": "<string>",
"bmPrivate": True,
"leadSource": "<string>"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
email: '<string>',
firstName: '<string>',
lastName: '<string>',
contactType: '<string>',
externalId: '<string>',
address: '<string>',
city: '<string>',
state: '<string>',
zip: '<string>',
phone: '<string>',
bmPrivate: true,
leadSource: '<string>'
})
};
fetch('https://api.lofty.com/v1.0/brokermint/lead', 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/brokermint/lead",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'firstName' => '<string>',
'lastName' => '<string>',
'contactType' => '<string>',
'externalId' => '<string>',
'address' => '<string>',
'city' => '<string>',
'state' => '<string>',
'zip' => '<string>',
'phone' => '<string>',
'bmPrivate' => true,
'leadSource' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lofty.com/v1.0/brokermint/lead"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"contactType\": \"<string>\",\n \"externalId\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\",\n \"phone\": \"<string>\",\n \"bmPrivate\": true,\n \"leadSource\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.lofty.com/v1.0/brokermint/lead")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"contactType\": \"<string>\",\n \"externalId\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\",\n \"phone\": \"<string>\",\n \"bmPrivate\": true,\n \"leadSource\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/brokermint/lead")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"contactType\": \"<string>\",\n \"externalId\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\",\n \"phone\": \"<string>\",\n \"bmPrivate\": true,\n \"leadSource\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success"
}"<string>""<string>"