While most endpoints will reveal their activities sufficiently on their own, sometimes it’s interesting to look at some events and their timings together. The TrackTik web application displays these events in the Dashboard widget:
To access these from the back-end, we have an endpoint called Event Activities.
The Event Activities endpoint offers (2022-11-21):
- Event Type
- User
- Date and Time
- Account (client site/zone)
These are the possible types:
EventReportCreated
EventTourStarted
EventCheckpointScan
EventClockin
EventClockout
EventPanicButton
EventPatrolSite
EventPatrolSignOutSite
EventStopBreak
EventTakeBreak
EventTourEnded
EventWatchMode
EventVisitorCheckIn
EventVisitorCheckOut
EventRunsheetCompleted
EventRunsheetEnRoute
EventRunsheetOnSite
EventRunsheetAbstract
EventAllowedGeofenceEnter
EventAllowedGeofenceExit
EventRestrictedGeofenceEnter
EventRestrictedGeofenceExit
SiteTaskEventActivity
The endpoint is used like this (with at least a date filter because the dataset is large):
[GET] /event-activities?createdOn:after=2024-05-01
[
{
"user": 1420,
"type": "EventTakeBreak",
"account": 767,
"createdOn": "2022-05-01T16:01:00+00:00",
"timeStamp": "2022-05-01T16:01:00+00:00",
"id": 27384
},
{
"user": 1420,
"type": "EventStopBreak",
"account": 767,
"createdOn": "2022-05-01T16:06:00+00:00",
"timeStamp": "2022-05-01T16:06:00+00:00",
"id": 27385
},
{
"user": 1420,
"type": "EventTakeBreak",
"account": 767,
"createdOn": "2022-05-01T16:08:00+00:00",
"timeStamp": "2022-05-01T16:08:00+00:00",
"id": 27386
},
...
]
NB: These are just the fields exposed today. The data model in the back-end includes more information like geolocation data, which may be exposed in the future.