Activities
List lead activities
Returns a unified timeline of call, text and email activities for the given lead, including both auto-captured and agent-logged entries, sorted by activityTime ascending.
Notes:
- Caller must have access to the lead; otherwise 404 LEAD_NOT_EXIST.
- Use currentId for cursor-based pagination or offset for offset-based pagination.
GET
/
v2.0
/
leads
/
{leadId}
/
activities
List lead activities (unified timeline)
curl --request GET \
--url https://api.lofty.com/v2.0/leads/{leadId}/activities \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v2.0/leads/{leadId}/activities"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lofty.com/v2.0/leads/{leadId}/activities', 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/v2.0/leads/{leadId}/activities",
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/v2.0/leads/{leadId}/activities"
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/v2.0/leads/{leadId}/activities")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v2.0/leads/{leadId}/activities")
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{
"activities": [
{
"id": 123,
"leadId": 123,
"agentId": 123,
"activityTime": "2026-03-19T10:30:00-07:00",
"channel": "<string>",
"communicationType": "<string>",
"direction": "<string>",
"callingOutcome": "<string>",
"leadPhoneNumber": "<string>",
"emailEventType": "<string>",
"emailSubject": "<string>",
"note": "<string>"
}
]
}"<string>""<string>""<string>"Path Parameters
Query Parameters
⌘I
List lead activities (unified timeline)
curl --request GET \
--url https://api.lofty.com/v2.0/leads/{leadId}/activities \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v2.0/leads/{leadId}/activities"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lofty.com/v2.0/leads/{leadId}/activities', 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/v2.0/leads/{leadId}/activities",
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/v2.0/leads/{leadId}/activities"
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/v2.0/leads/{leadId}/activities")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v2.0/leads/{leadId}/activities")
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{
"activities": [
{
"id": 123,
"leadId": 123,
"agentId": 123,
"activityTime": "2026-03-19T10:30:00-07:00",
"channel": "<string>",
"communicationType": "<string>",
"direction": "<string>",
"callingOutcome": "<string>",
"leadPhoneNumber": "<string>",
"emailEventType": "<string>",
"emailSubject": "<string>",
"note": "<string>"
}
]
}"<string>""<string>""<string>"