Leads
Get Lead History
Get the activity history of a lead with GET /api/leads//history: status changes, notes, updates from integrations and the API, and conversion syncs, newest first.
GET
/
api
/
leads
/
{id}
/
history
Get Lead History
curl --request GET \
--url https://octanist.com/api/leads/{id}/history \
--header 'X-API-KEY: <api-key>'import requests
url = "https://octanist.com/api/leads/{id}/history"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://octanist.com/api/leads/{id}/history', 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://octanist.com/api/leads/{id}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$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://octanist.com/api/leads/{id}/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://octanist.com/api/leads/{id}/history")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://octanist.com/api/leads/{id}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "hist_001",
"type": "external_update",
"content": "Lead updated via api",
"createdAt": "2023-11-07T05:31:56Z",
"userName": "<string>",
"source": "api",
"statusChange": {
"from": "<string>",
"to": "<string>"
}
}
],
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Human readable error message",
"details": {}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Human readable error message",
"details": {}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Human readable error message",
"details": {}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Human readable error message",
"details": {}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}Returns the activity feed of one lead, as shown on the lead in the app: status changes, notes, updates from your CRM or the API, and the results of conversion uploads to your ad platforms.
All entries are returned, newest first. This endpoint is not paginated.
New entry types can be added over time. Treat unknown types as plain activity.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Octanist lead ID |
Example Request
curl -X GET \
-H "X-API-KEY: your_api_key" \
"https://octanist.com/api/leads/lead_abc123/history"
Example Response
{
"success": true,
"data": [
{
"id": "hist_003",
"type": "external_note",
"content": "Signed the yearly contract",
"createdAt": "2026-02-20T14:00:05.000Z",
"userName": null,
"source": "api"
},
{
"id": "hist_002",
"type": "external_update",
"content": "Lead updated via api",
"createdAt": "2026-02-20T14:00:00.000Z",
"userName": null,
"source": "api"
},
{
"id": "hist_001",
"type": "lead_created",
"content": "Lead created manually.",
"createdAt": "2026-01-15T10:30:00.000Z",
"userName": "Jane Smith",
"source": "manual"
}
],
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Entry ID |
type | string | Kind of entry, for example lead_created, status_change, milestone_reached, external_update, external_note, manual_note, sync_success, sync_failed or sync_skipped |
content | string | Text of the entry as shown in the app |
createdAt | string | When the entry was created (ISO 8601) |
userName | string | null | Name of the person who made the change in the app, or null for integrations and the API |
source | string | null | Where the change came from, for example api, manual, or an integration such as pipedrive, when the entry records it |
statusChange | object | null | Only on status_change entries: { "from": "open", "to": "won" }, or null when the entry does not record both statuses |
Error Responses
| Status | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid API key |
| 403 | LEAD_LOCKED | The lead is over your plan’s lead limit. See Locked leads. |
| 404 | NOT_FOUND | No lead with this ID in your organization |
| 500 | INTERNAL_ERROR | Server error |
⌘I
Get Lead History
curl --request GET \
--url https://octanist.com/api/leads/{id}/history \
--header 'X-API-KEY: <api-key>'import requests
url = "https://octanist.com/api/leads/{id}/history"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://octanist.com/api/leads/{id}/history', 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://octanist.com/api/leads/{id}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$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://octanist.com/api/leads/{id}/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://octanist.com/api/leads/{id}/history")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://octanist.com/api/leads/{id}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "hist_001",
"type": "external_update",
"content": "Lead updated via api",
"createdAt": "2023-11-07T05:31:56Z",
"userName": "<string>",
"source": "api",
"statusChange": {
"from": "<string>",
"to": "<string>"
}
}
],
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Human readable error message",
"details": {}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Human readable error message",
"details": {}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Human readable error message",
"details": {}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Human readable error message",
"details": {}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}