This endpoint allows requesting historical location and environmental data based on provided filters. Up to 1 year of history is available, at once maximum 1 month or 1000 events can be fetched. If no time frame provided, the latest event is returned.
Trackonomy External API (1.3.0.0)
External APIs are meant for interacting with Trackonomy Platform. New endpoints will be added regularly. Current APIs enable the following:
- retrieve location and environmental data for assets tracked with Trackonomy tapes.
- decode Trackonomy BLE packets
- send various messages from third party systems for integration purposes
Locations endpoint can be used for the latest event, Historical data endpoint reveals also older data with about 15 minute delay.
This API allows to request location and environmental data for assets tracked with Trackonomy tapes.
available sensor data depends on the exact model of tape used and sensor configuration applied to the specific device. Value -255 indicates sensor unavailability.
location_detailed info can only be returned if Trackonomy indoor network is used by customer at the given location.
Request
Decodes a BLE packet from a single device and returns sensor data including temperature, battery, shock events, and other telemetry information.
- Mock serverhttps://docs.trackonomy.com/_mock/external-api/trackonomy-external-api/external/v1/devices/{mac_id}/decode
- PPE API for Locations datahttps://ppe.api.trackonomy.com/external/external/v1/devices/{mac_id}/decode
- PPE API for Historical datahttps://ppe.mt.trackonomysystems.com/external/v1/devices/{mac_id}/decode
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.trackonomy.com/_mock/external-api/trackonomy-external-api/external/v1/devices/Trackonomy device macid/decode' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'authorized_groups: Unique customer sub-group UUID' \
-H 'ble_packet: Encoded Trackonomy device data' \
-H 'customer_id: Unique customer UUID' \
-H 'product_id: Unique Trackonomy device identifier' \
-H 'scan_time: Event time'{ "qr_code": "TRK123456789", "cts": 1730813898, "ts": 1730813898, "bat": 3.2, "temp": 22.5, "over_temp": 35, "over_temp_ts": 1730813800, "shock": 2.5, "shock_ts": 1730813800, "shock_count": 3, "fw_ver": "1.2.3" }
Request
Processes multiple BLE packets from different devices in a single request. Ideal for bulk operations and batch processing.
- Mock serverhttps://docs.trackonomy.com/_mock/external-api/trackonomy-external-api/external/v1/devices/decode
- PPE API for Locations datahttps://ppe.api.trackonomy.com/external/external/v1/devices/decode
- PPE API for Historical datahttps://ppe.mt.trackonomysystems.com/external/v1/devices/decode
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.trackonomy.com/_mock/external-api/trackonomy-external-api/external/v1/devices/decode \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'authorized_groups: Unique customer sub-group UUID' \
-H 'customer_id: Unique customer UUID' \
-d '[
{
"mac_id": "A1B2C3D4E5F6",
"ble_packet": "XXXXXXXX",
"product_id": "example-device",
"scan_time": "1730813898"
},
{
"mac_id": "A1B2C3D4E5F6",
"ble_packet": "YYYYYYYYYYYY",
"product_id": "example-device",
"scan_time": "1730813899"
}
]'[ { "mac_id": "A1B2C3D4E5F6", "qr_code": "TRK123456789", "cts": 1730813898, "ts": 1730813898, "bat": 3.2, "temp": 22.5, "error": "Invalid BLE packet" } ]