get https://a.klaviyo.com/api/v1/person//metric//timeline
Returns a person's batched timeline for one specific event type.
Response
Returns a person's batched timeline for one specific event type.
xxxxxxxxxx
curl --request GET \
--url 'https://a.klaviyo.com/api/v1/person/PERSON_ID/metric/METRIC_ID/timeline?count=50&sort=desc&api_key=PRIVATE_API_KEY' \
--header 'accept: application/json'
xxxxxxxxxx
32{
"object": "$list",
"count": 1,
"data": [
{
"object": "event",
"id": "EVENT_ID",
"statistic_id": "STATISTIC_ID",
"timestamp": 1234567890,
"event_name": "Placed Order",
"event_properties": {
"$value": 100,
"items": [
{
"name": "Boots",
"sku": "ITEM_SKU",
"price": 50,
"quantity": 2
}
]
},
"datetime": "2021-11-23 11:21:01+00:00",
"uuid": "UNIQUE_EVENT_ID",
"person": {
"id": "PERSON_ID",
"object": "person",
"$email": "george.washington@klaviyo.com"
}
}
],
"next": "1400656845-ABCDEFG"
}