Info

Get History

GET
The history endpoint return a user's event history.

Query parameters

eventsstringOptional
The type of events to filter on.
fromdateOptional
An ISO 8601 encoded date string indicating the starting time period for the events. In the format YYYY-MM-DD
todateOptional
An ISO 8601 encoded date string indicating the ending time period for the events. In the format YYYY-MM-DD
sizeintegerOptional
Size to limit number of events returned
tokenstringOptional
Pagination token to retrieve the next page of results

Response

This endpoint returns an object
size
integer
next_token
string
events
list of objects
GET
1curl -G https://api.sayari.com/v1/history \
2 -H "Authorization: Bearer <token>" \
3 -d events=string \
4 -d from=2023-01-01
200
Retrieved
1{
2 "size": 0,
3 "next_token": "string",
4 "events": [
5 {
6 "user": "string",
7 "environment": "string",
8 "event": "string",
9 "data": {
10 "string": {}
11 },
12 "timestamp": "string"
13 }
14 ]
15}