Get a List of Events
This API call returns a specified number of the most recent events of all devices within a group.
The number of events must be specified using the limit parameter (max: 10.000).
Events are retained for 32 days maximum.
Use Forwarding to get real time events instead of polling the API
Authentication
Type: Basic Authentication
Credentials: Email + Password
Method & Endpoint
Method: GET
Endpoint: https://tracking.ilockit.bike/api/reports/events
Query Parameters
| Key | Value |
|---|---|
| limit | (integer) e.g. 5000 |
| groupId | (integer) e.g. 4 |
HTTP Headers
accept: application/json
Responses
200 OK: Request successful400 Bad Request: Missing or malformed input401 Unauthorized: Authentication failed
Event Types
The following events can be triggered:
deviceOnline: Device came onlinedeviceUnknown: Device went offlinelockInfo: Lock battery and status infolockStatus: Lock state change (e.g., open/close)error: Invalid command or execution failedacknowledge: Command accepted and executedfwInfo: Information about device firmwarerequestFwPacket: Device requests OTA update packageunknown: Unknown command received from the lock
Additional event types for command tracking:
command: Command sent via APIcommandExpired: Command expired before executionwrongPayload: Command contained invalid data
📝 For PRO locks and GPS locks (with firmware version 34.0 and above), event responses may contain the eventId of the original request — allowing correlation between sent commands and resulting events.
Error events
If there is something wrong with a received command, the lock sends error messages to the server. The event has the type error and the errorCode gives details about the status event, as seen in this example:
[
{
"id": 25758,
"attributes": {
"errorCode": "wrongLength"
},
"deviceId": 274,
"type": "lockStatus",
"serverTime": "2020-12-16T14:32:22.000+0000",
"positionId": 0,
"geofenceId": 0,
"maintenanceId": 0,
"commandId": 0
}
]
The following errors can occur:
wrongCommand: Unknown command receivedwrongCrc CRC: doesn’t fit to received messagewrongLength: Wrong message size receivedauthFailed: Authentication failed (e.g. locking command)
Example Response
Device Online Event
[
{
"id": 20912,
"attributes": {},
"deviceId": 64443,
"type": "deviceOnline",
"serverTime": "2020-04-20T10:04:54.000+0000",
"positionId": 0,
"geofenceId": 0,
"maintenanceId": 0,
"commandId": 0
}
]
Lock Info Status Package
[
{
"id": 189141899,
"attributes": {
"batteryLevel": 59,
"lockState": 0,
"firmwareVersion": 2.5,
"charging": 0,
"theftMode": 0,
"alarmArmed": 1,
"alarmSettings": 2,
"soundSettings": 0,
"bootloaderVersion": 3,
"lockStateChain": 0,
"eventId": 34480
},
"deviceId": 30055,
"type": "lockInfo",
"serverTime": "2025-07-29T03:40:14.000+0000",
"positionId": 0,
"geofenceId": 0,
"maintenanceId": 0,
"commandId": 0
}
]
Attributes
batteryLevel: Value in percentage0-100%lockState: Current locking status0- open,1- closed,2- undefinedfirmwareVersion: Firmware version installed on the lockcharging: Is the lock currently being charged0- false,1- truetheftMode: Is theftMode activated0- false,1- truealarmArmed: Is the alarm armed0- false,1- truealarmSettings: The current alarm setting.soundSettings: The current sound setting.bootloaderVersion: Bootloader version installed on the locklockStateChain: Current locking status of the chain0- open,1closedeventId: Corresponding event ID if the event was trigged by a command, otherwise0
Depending on the device and firmware version not all attributes are available in the status package
If you want to correlate a specific event with a previously sent command, store the eventId returned in the command response. Use this ID to match later events.