Trackunit Developer Hub

Developer Hub

Welcome to our Developer hub.

Here You'll find comprehensive documentation to help you start working with the API's as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started

Key History

Provides a log of all access key activity for the selected period of time. Access key activity is defined by unit operated, location, timestamp, movement (if any) with heading and speed, external power level etc.

URL Structure is:
https://api.trackunit.com/public/Report/KeyHistory

GetKeyHistory

Parameters

NameData typeUnit of measurementNote
keyId*StringN/AKeyId to request summary for.
from*DateTimeUTCThe start date.
to *DateTimeUTCThe end date.

Columns

Refer to the following table for description of columns:

NameData typeUnit of measurementNullabilityNote
unitIdStringUTCTRUE
timeDateTimeUTCTRUETimestamp.
locationLocationN/ATRUE
addressAddressN/ATRUE
headingINTDegreesTRUEUnit heading (when moving).
speedDoubleKm/hTRUEUnit speed.
kmDoubleKmFALSE
run1DoubleSecondsFALSE
run2DoubleSecondsFALSE
temperature1DoubleDegreesTRUE
temperature2DoubleDegreesTRUE
input1BoolN/AFALSE
input2BoolN/AFALSE
output3BookN/AFALSE
batteryLevelDoublePercentTRUEBattery level (internal battery).
externalPowerDoubleMili VoltsTRUEExternal power level.

Request (example)

{
      "keyId": "57899",
      "from": "2014-09-02T13:00:00.0000000",
      "to": "2014-09-02T14:05:00.0000000"
 }

Response

{
            "list": [
                {
                    "unitId": "57899",
                    "time": "2014-09-02T13:59:09.0000000Z",
                    "location": {
                        "latitude": 48.7669866666667,
                        "longitude": 13.046835
                    },
                    "address": {
                        "country": "DE",
                        "zipCode": "94491",
                        "city": "Hengersberg",
                        "streetAddress": "Donaustraße 7"
                    },
                    "heading": 0,
                    "speed": 0,
                    "km": 231.7,
                    "run1": 2760840,
                    "run2": 2760840,
                    "runOdo": 27600,
                    "input1": true,
                    "input2": true,
                    "output3": false,
                    "batteryLevel": 100,
                    "externalPower": 13.8
                },
                {
                    "unitId": "57899",
                    "time": "2014-09-02T13:59:11.0000000Z",
                    "location": {
                        "latitude": 48.7669833333333,
                        "longitude": 13.0468433333333
                    },
                    "address": {
                        "country": "DE",
                        "zipCode": "94491",
                        "city": "Hengersberg",
                        "streetAddress": "Donaustraße 7"
                    },
                    "heading": 0,
                    "speed": 0,
                    "km": 231.7,
                    "run1": 2760840,
                    "run2": 2760840,
                    "runOdo": 27600,
                    "input1": true,
                    "input2": true,
                    "output3": false,
                    "batteryLevel": 100,
                    "externalPower": 13.6
                },
                {
                    "unitId": "57899",
                    "time": "2014-09-02T14:01:05.0000000Z",
                    "location": {
                        "latitude": 48.7670466666667,
                        "longitude": 13.0471833333333
                    },
                    "address": {
                        "country": "DE",
                        "zipCode": "94491",
                        "city": "Hengersberg",
                        "streetAddress": "Donaustraße 9"
                    },
                    "heading": 38,
                    "speed": 1,
                    "km": 231.7,
                    "run1": 2760960,
                    "run2": 2760960,
                    "runOdo": 27600,
                    "input1": true,
                    "input2": true,
                    "output3": false,
                    "batteryLevel": 100,
                    "externalPower": 13.6
                }
            ]
}

Updated 13 days ago

Key History


Provides a log of all access key activity for the selected period of time. Access key activity is defined by unit operated, location, timestamp, movement (if any) with heading and speed, external power level etc.

URL Structure is:
https://api.trackunit.com/public/Report/KeyHistory

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.