Skip to main content

DeviceOut

idstring<uuid>required
device_idDevice Id (string)required
nameName (string)required
device_typeDevice Type (string)required
is_activeIs Active (boolean)required
shift_statusShift Status (string)required
shift_started_at object
anyOf
string<date-time>
shift_paused_at object
anyOf
string<date-time>
shift_ended_at object
anyOf
string<date-time>
shift_resumed_at object
anyOf
string<date-time>
last_location object
anyOf
latitudeLatitude (number)required
longitudeLongitude (number)required
last_location_time object
anyOf
string<date-time>
last_heading object
anyOf
number
current_session_notesCurrent Session Notes (string)
Default value:
in_geofence_idsstring[]
Default value: []
in_geofence_entries object
property name*string
created_atstring<date-time>required
updated_atstring<date-time>required
DeviceOut
{
"created_at": "2025-09-15T10:00:00Z",
"current_session_notes": "Route 5 — downtown deliveries",
"device_id": "mobile-device-001",
"device_type": "mobile",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"in_geofence_entries": {
"b2c3d4e5-f6a7-8901-bcde-f12345678901": "2025-10-01T14:25:00Z"
},
"in_geofence_ids": [
"b2c3d4e5-f6a7-8901-bcde-f12345678901"
],
"is_active": true,
"last_heading": 270,
"last_location": {
"latitude": 40.7128,
"longitude": -74.006
},
"last_location_time": "2025-10-01T14:30:00Z",
"name": "Delivery Truck #1",
"shift_ended_at": null,
"shift_paused_at": null,
"shift_resumed_at": null,
"shift_started_at": "2025-10-01T08:00:00Z",
"shift_status": "active",
"updated_at": "2025-10-01T14:30:00Z"
}