curl --request GET \
--url https://api.orbit.devotel.io/api/v1/cdp/profiles/by-user-id/{user_id}/trait-historyimport requests
url = "https://api.orbit.devotel.io/api/v1/cdp/profiles/by-user-id/{user_id}/trait-history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orbit.devotel.io/api/v1/cdp/profiles/by-user-id/{user_id}/trait-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://api.orbit.devotel.io/api/v1/cdp/profiles/by-user-id/{user_id}/trait-history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.orbit.devotel.io/api/v1/cdp/profiles/by-user-id/{user_id}/trait-history"
req, _ := http.NewRequest("GET", url, nil)
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.orbit.devotel.io/api/v1/cdp/profiles/by-user-id/{user_id}/trait-history")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/profiles/by-user-id/{user_id}/trait-history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"user_id": "ext_44882",
"contact_id": "cnt_01J8XF3T4W5Q6N7V8R9M0K1P",
"data": [
{
"id": "ctr_01J8ZA1B2C3D4E5F6G7H8J9K",
"trait_name": "lifetime_orders",
"trait_kind": "computed",
"old_value": 3,
"new_value": 8,
"source": "trait-recompute-worker",
"triggered_by_event_id": "evt_01J8ZC4D5E6F7G8H9J0K1L2M",
"changed_at": "2026-08-18T21:14:00.000Z"
},
{
"id": "ctr_01J8YB9C8D7E6F5G4H3J2K1L",
"trait_name": "lifecycle_stage",
"trait_kind": "standard",
"old_value": "lead",
"new_value": "customer",
"source": "cdp.identify",
"triggered_by_event_id": null,
"changed_at": "2026-08-12T09:02:00.000Z"
}
],
"count": 2,
"next_before": "2026-08-12T09:02:00.000Z",
"next_cursor": "eyJjaGFuZ2VkX2F0IjoiMjAyNi0wOC0xMlQwOTowMjowMC4wMDBaIiwiaWQiOiJjdHJfMDFKOFlCOUM4RDdFNkY1RzRIM0oySzFMIn0"
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-19T12:00:00.000Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "<string>",
"status": 429,
"retry_after": 2
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Get a profile's trait change history
Returns the append-only ledger of trait value transitions for the contact identified by your user_id (external_id), newest first — the audit timeline that answers “when did lifetime_orders flip from 3 to 8 and what triggered it?”. Filter to one trait with ?trait_name=, page with the composite ?cursor= from each response’s next_cursor (preferred) or the legacy ?before= ISO timestamp. Requires owner/admin/developer + contacts:read.
curl --request GET \
--url https://api.orbit.devotel.io/api/v1/cdp/profiles/by-user-id/{user_id}/trait-historyimport requests
url = "https://api.orbit.devotel.io/api/v1/cdp/profiles/by-user-id/{user_id}/trait-history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orbit.devotel.io/api/v1/cdp/profiles/by-user-id/{user_id}/trait-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://api.orbit.devotel.io/api/v1/cdp/profiles/by-user-id/{user_id}/trait-history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.orbit.devotel.io/api/v1/cdp/profiles/by-user-id/{user_id}/trait-history"
req, _ := http.NewRequest("GET", url, nil)
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.orbit.devotel.io/api/v1/cdp/profiles/by-user-id/{user_id}/trait-history")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/profiles/by-user-id/{user_id}/trait-history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"user_id": "ext_44882",
"contact_id": "cnt_01J8XF3T4W5Q6N7V8R9M0K1P",
"data": [
{
"id": "ctr_01J8ZA1B2C3D4E5F6G7H8J9K",
"trait_name": "lifetime_orders",
"trait_kind": "computed",
"old_value": 3,
"new_value": 8,
"source": "trait-recompute-worker",
"triggered_by_event_id": "evt_01J8ZC4D5E6F7G8H9J0K1L2M",
"changed_at": "2026-08-18T21:14:00.000Z"
},
{
"id": "ctr_01J8YB9C8D7E6F5G4H3J2K1L",
"trait_name": "lifecycle_stage",
"trait_kind": "standard",
"old_value": "lead",
"new_value": "customer",
"source": "cdp.identify",
"triggered_by_event_id": null,
"changed_at": "2026-08-12T09:02:00.000Z"
}
],
"count": 2,
"next_before": "2026-08-12T09:02:00.000Z",
"next_cursor": "eyJjaGFuZ2VkX2F0IjoiMjAyNi0wOC0xMlQwOTowMjowMC4wMDBaIiwiaWQiOiJjdHJfMDFKOFlCOUM4RDdFNkY1RzRIM0oySzFMIn0"
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-19T12:00:00.000Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "<string>",
"status": 429,
"retry_after": 2
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Path Parameters
Query Parameters
Restrict the timeline to a single trait (e.g. lifetime_orders).
Page size (1-200, default 50). Out-of-range or non-numeric values degrade to the default.
Legacy single-column cursor: rows changed before this ISO8601 timestamp. Prefer the composite cursor.
Opaque composite (changed_at, id) pagination cursor — pass the previous response's next_cursor verbatim. Stable across identical timestamps.
Response
One page of trait transitions, newest first, with next-page cursors.
One page of trait transitions, newest first, with next-page cursors.