curl --request GET \
--url https://api.lemlist.com/api/v2/crm/logs \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/v2/crm/logs"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.lemlist.com/api/v2/crm/logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://api.lemlist.com/api/v2/crm/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/v2/crm/logs",
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: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}Get CRM Logs
Retrieves the CRM sync history of your team, a contact or a company.
curl --request GET \
--url https://api.lemlist.com/api/v2/crm/logs \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/v2/crm/logs"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.lemlist.com/api/v2/crm/logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://api.lemlist.com/api/v2/crm/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/v2/crm/logs",
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: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}Authorizations
Query Parameters
Page number, starting at 1. Default: 1. page × limit must not exceed 5,000 (PAGE_OUT_OF_RANGE): beyond the 5,000 most recent rows, call again with to set to the createdAt of the last log you received. to is inclusive, so the logs of that instant come back: skip the _ids you already have.
x >= 1Only the logs that wrote or skipped one of these fields, comma-separated: at most 10 names of 100 characters each (INVALID_PARAMETER). A name is a lemlist field (ownerId, email, a custom field), matched through your CRM field mapping, or the CRM field as updatedFields and skippedFields show it: its API name (hubspot_owner_id) or its label (Contact owner), matched exactly. field=ownerId lists every owner change, whatever the method. It also keeps the activities that carry an owner (a call or a meeting logged on HubSpot): add category=contact,company to keep the owner changes of contacts and companies only. A log keeps the label the CRM field had when it was written: after a rename in your CRM, pass the old label to find the older logs. On a team period dense with logs, a rare field can answer READ_TOO_SLOW: narrow from / to.
Only the logs created at or after this date (ISO 8601, read in UTC: a time without offset is UTC, a date without time starts at 00:00). For a record, no default: its whole history. For the team, 31 days before to by default, and from and to may span 31 days at most (INVALID_DATE_RANGE): with dates without time, from=2026-08-01&to=2026-08-31 is the widest window.
Response
Success
Was this page helpful?