Manual Logs
Add a manual log entry
Creates a manual log entry (logCall, logEmail or logText) for the target lead.
Notes:
- Persistence is asynchronous. The response returns the new entry’s ID once the write is enqueued; the entry becomes readable after a short delay.
- Caller must have access to the lead (owner, shared agent, or assigned lender), and the lead must not be trashed. Otherwise 404 LEAD_NOT_EXIST.
- leadId, logType and content are required for all channels.
- content is silently truncated to 5000 characters.
- outboundOrInbound must be exactly ‘outbound’ or ‘inbound’ when supplied; omitted values default to ‘outbound’.
- For logCall: leadPhoneNumber is required (max 20 characters). callingOutcome is optional (max 20 characters); an omitted or unrecognized value leaves the outcome empty.
- For logEmail: emailSubject / toEmail / fromEmail are optional and accepted as-is.
POST
/
v1.0
/
logType
Add a manual log entry (call, email or text)
curl --request POST \
--url https://api.lofty.com/v1.0/logType \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"leadId": 563172647619608,
"logType": "logCall",
"content": "Discussed Austin inventory, will send pre-approval doc tomorrow.",
"leadPhoneNumber": "5865865860",
"callingOutcome": "VoiceMessage",
"outboundOrInbound": "outbound",
"isPin": false,
"emailSubject": "Follow-up on Austin listings",
"toEmail": "sarah.johnson@example.com",
"fromEmail": "agent@lofty.com"
}
'import requests
url = "https://api.lofty.com/v1.0/logType"
payload = {
"leadId": 563172647619608,
"logType": "logCall",
"content": "Discussed Austin inventory, will send pre-approval doc tomorrow.",
"leadPhoneNumber": "5865865860",
"callingOutcome": "VoiceMessage",
"outboundOrInbound": "outbound",
"isPin": False,
"emailSubject": "Follow-up on Austin listings",
"toEmail": "sarah.johnson@example.com",
"fromEmail": "agent@lofty.com"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
leadId: 563172647619608,
logType: 'logCall',
content: 'Discussed Austin inventory, will send pre-approval doc tomorrow.',
leadPhoneNumber: '5865865860',
callingOutcome: 'VoiceMessage',
outboundOrInbound: 'outbound',
isPin: false,
emailSubject: 'Follow-up on Austin listings',
toEmail: 'sarah.johnson@example.com',
fromEmail: 'agent@lofty.com'
})
};
fetch('https://api.lofty.com/v1.0/logType', 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/logType",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'leadId' => 563172647619608,
'logType' => 'logCall',
'content' => 'Discussed Austin inventory, will send pre-approval doc tomorrow.',
'leadPhoneNumber' => '5865865860',
'callingOutcome' => 'VoiceMessage',
'outboundOrInbound' => 'outbound',
'isPin' => false,
'emailSubject' => 'Follow-up on Austin listings',
'toEmail' => 'sarah.johnson@example.com',
'fromEmail' => 'agent@lofty.com'
]),
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/logType"
payload := strings.NewReader("{\n \"leadId\": 563172647619608,\n \"logType\": \"logCall\",\n \"content\": \"Discussed Austin inventory, will send pre-approval doc tomorrow.\",\n \"leadPhoneNumber\": \"5865865860\",\n \"callingOutcome\": \"VoiceMessage\",\n \"outboundOrInbound\": \"outbound\",\n \"isPin\": false,\n \"emailSubject\": \"Follow-up on Austin listings\",\n \"toEmail\": \"sarah.johnson@example.com\",\n \"fromEmail\": \"agent@lofty.com\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.lofty.com/v1.0/logType")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"leadId\": 563172647619608,\n \"logType\": \"logCall\",\n \"content\": \"Discussed Austin inventory, will send pre-approval doc tomorrow.\",\n \"leadPhoneNumber\": \"5865865860\",\n \"callingOutcome\": \"VoiceMessage\",\n \"outboundOrInbound\": \"outbound\",\n \"isPin\": false,\n \"emailSubject\": \"Follow-up on Austin listings\",\n \"toEmail\": \"sarah.johnson@example.com\",\n \"fromEmail\": \"agent@lofty.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/logType")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"leadId\": 563172647619608,\n \"logType\": \"logCall\",\n \"content\": \"Discussed Austin inventory, will send pre-approval doc tomorrow.\",\n \"leadPhoneNumber\": \"5865865860\",\n \"callingOutcome\": \"VoiceMessage\",\n \"outboundOrInbound\": \"outbound\",\n \"isPin\": false,\n \"emailSubject\": \"Follow-up on Austin listings\",\n \"toEmail\": \"sarah.johnson@example.com\",\n \"fromEmail\": \"agent@lofty.com\"\n}"
response = http.request(request)
puts response.read_body{
"logType": {
"id": 563172647619608,
"leadId": 100001,
"leadPhoneNumber": "5865865860",
"callingOutcome": "VoiceMessage",
"content": "Discussed Austin inventory, will send pre-approval doc tomorrow.",
"createTime": "2026-04-22 10:15:30",
"outboundOrInbound": "outbound",
"isPin": false,
"agentId": 100234,
"emailSubject": "Follow-up on Austin listings",
"toEmail": "sarah.johnson@example.com",
"fromEmail": "agent@lofty.com"
}
}"<string>""<string>""<string>""<string>"Body
application/json
Manual log entry payload.
⌘I
Add a manual log entry (call, email or text)
curl --request POST \
--url https://api.lofty.com/v1.0/logType \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"leadId": 563172647619608,
"logType": "logCall",
"content": "Discussed Austin inventory, will send pre-approval doc tomorrow.",
"leadPhoneNumber": "5865865860",
"callingOutcome": "VoiceMessage",
"outboundOrInbound": "outbound",
"isPin": false,
"emailSubject": "Follow-up on Austin listings",
"toEmail": "sarah.johnson@example.com",
"fromEmail": "agent@lofty.com"
}
'import requests
url = "https://api.lofty.com/v1.0/logType"
payload = {
"leadId": 563172647619608,
"logType": "logCall",
"content": "Discussed Austin inventory, will send pre-approval doc tomorrow.",
"leadPhoneNumber": "5865865860",
"callingOutcome": "VoiceMessage",
"outboundOrInbound": "outbound",
"isPin": False,
"emailSubject": "Follow-up on Austin listings",
"toEmail": "sarah.johnson@example.com",
"fromEmail": "agent@lofty.com"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
leadId: 563172647619608,
logType: 'logCall',
content: 'Discussed Austin inventory, will send pre-approval doc tomorrow.',
leadPhoneNumber: '5865865860',
callingOutcome: 'VoiceMessage',
outboundOrInbound: 'outbound',
isPin: false,
emailSubject: 'Follow-up on Austin listings',
toEmail: 'sarah.johnson@example.com',
fromEmail: 'agent@lofty.com'
})
};
fetch('https://api.lofty.com/v1.0/logType', 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/logType",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'leadId' => 563172647619608,
'logType' => 'logCall',
'content' => 'Discussed Austin inventory, will send pre-approval doc tomorrow.',
'leadPhoneNumber' => '5865865860',
'callingOutcome' => 'VoiceMessage',
'outboundOrInbound' => 'outbound',
'isPin' => false,
'emailSubject' => 'Follow-up on Austin listings',
'toEmail' => 'sarah.johnson@example.com',
'fromEmail' => 'agent@lofty.com'
]),
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/logType"
payload := strings.NewReader("{\n \"leadId\": 563172647619608,\n \"logType\": \"logCall\",\n \"content\": \"Discussed Austin inventory, will send pre-approval doc tomorrow.\",\n \"leadPhoneNumber\": \"5865865860\",\n \"callingOutcome\": \"VoiceMessage\",\n \"outboundOrInbound\": \"outbound\",\n \"isPin\": false,\n \"emailSubject\": \"Follow-up on Austin listings\",\n \"toEmail\": \"sarah.johnson@example.com\",\n \"fromEmail\": \"agent@lofty.com\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.lofty.com/v1.0/logType")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"leadId\": 563172647619608,\n \"logType\": \"logCall\",\n \"content\": \"Discussed Austin inventory, will send pre-approval doc tomorrow.\",\n \"leadPhoneNumber\": \"5865865860\",\n \"callingOutcome\": \"VoiceMessage\",\n \"outboundOrInbound\": \"outbound\",\n \"isPin\": false,\n \"emailSubject\": \"Follow-up on Austin listings\",\n \"toEmail\": \"sarah.johnson@example.com\",\n \"fromEmail\": \"agent@lofty.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/logType")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"leadId\": 563172647619608,\n \"logType\": \"logCall\",\n \"content\": \"Discussed Austin inventory, will send pre-approval doc tomorrow.\",\n \"leadPhoneNumber\": \"5865865860\",\n \"callingOutcome\": \"VoiceMessage\",\n \"outboundOrInbound\": \"outbound\",\n \"isPin\": false,\n \"emailSubject\": \"Follow-up on Austin listings\",\n \"toEmail\": \"sarah.johnson@example.com\",\n \"fromEmail\": \"agent@lofty.com\"\n}"
response = http.request(request)
puts response.read_body{
"logType": {
"id": 563172647619608,
"leadId": 100001,
"leadPhoneNumber": "5865865860",
"callingOutcome": "VoiceMessage",
"content": "Discussed Austin inventory, will send pre-approval doc tomorrow.",
"createTime": "2026-04-22 10:15:30",
"outboundOrInbound": "outbound",
"isPin": false,
"agentId": 100234,
"emailSubject": "Follow-up on Austin listings",
"toEmail": "sarah.johnson@example.com",
"fromEmail": "agent@lofty.com"
}
}"<string>""<string>""<string>""<string>"