Devices
REST API for device management — list devices, toggle active status, GPS history, and GPS updates.
Devices API
Devices are physical hardware units (phones, tablets) registered in the system. Admin controls device access; any authenticated user can read GPS.
List All Devices
Admin only.
Response 200 OK:
Toggle Device Active Status
Admin only. Disabling a device prevents it from authenticating. Used for device revocation — see Key Management for the full revocation flow.
Response 200 OK:
Get Last Known GPS
Returns the most recent GPS fix recorded for a device.
Response 200 OK:
Response 404 Not Found: No GPS updates recorded for this device yet.
Store a GPS Update
Called by the mobile app to push a GPS fix to the server (e.g. from the DLS-140 GPS poll). Also available via WebSocket GPS_UPDATE message.
Response 200 OK:
GPS updates sent via WebSocket (GPS_UPDATE message) are written to the database automatically by the hub without requiring a separate REST call.