- Company
- Device
- Device Firmware
- Driver Scoring / Coaching
- Event
- Live streaming
- Report
- User
get a last event of devices
GET
/partners/companies/{company_name}/devices/lastevent
deviceeventlist
Request
Path Params
company_name
string
required
Query Params
inactive
boolean
optional
true
Example:
false
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://fleet.roscolive.com/api/v1.0/partners/companies//devices/lastevent?inactive=false'
Responses
🟢200Success
application/json
Body
meta
object
required
code
integer
required
response
object
required
devices
array [object {11}]
required
result
string
required
Example
{
"meta": {
"code": 200
},
"response": {
"devices": [
{
"device_id": "12345",
"driver_id": 12345,
"driver_name": "Thomas Hudson",
"events": [
{
"endtime": "2022-10-18T18:47:19.0Z",
"id": "1909786",
"name": "InputSensor9",
"starttime": "2022-10-18T18:47:09.0Z"
},
{
"endtime": "2022-10-18T18:47:19.0Z",
"id": "1909786",
"name": "InputSensor9",
"starttime": "2022-10-18T18:47:09.0Z"
}
],
"general_status": "pending_awake",
"gps": {
"dir": "84",
"dst": "2756",
"key": true,
"lan": "40.70168685913086",
"lon": "-73.81008148193359",
"spd": "40",
"timestamp": "2024-01-01T17:32:41.0Z"
},
"ignition": {
"state": true,
"ts": "2024-05-04T23:57:01.0Z"
},
"modem_rssi": "-51",
"online": false,
"sleep": 2,
"vehicle_name": "Truck 1"
},
{
"device_id": "12345",
"driver_id": 12345,
"driver_name": "Mrs. Monique Aufderhar DVM",
"events": [
{
"endtime": "2022-10-18T18:47:19.0Z",
"id": "1909786",
"name": "InputSensor9",
"starttime": "2022-10-18T18:47:09.0Z"
},
{
"endtime": "2022-10-18T18:47:19.0Z",
"id": "1909786",
"name": "InputSensor9",
"starttime": "2022-10-18T18:47:09.0Z"
}
],
"general_status": "offline",
"gps": {
"dir": "84",
"dst": "2756",
"key": false,
"lan": "40.70168685913086",
"lon": "-73.81008148193359",
"spd": "40",
"timestamp": "2024-01-01T17:32:41.0Z"
},
"ignition": {
"state": true,
"ts": "2024-05-04T23:57:01.0Z"
},
"modem_rssi": "-51",
"online": false,
"sleep": 2,
"vehicle_name": "Truck 1"
},
{
"device_id": "12345",
"driver_id": 12345,
"driver_name": "Robin Welch MD",
"events": [
{
"endtime": "2022-10-18T18:47:19.0Z",
"id": "1909786",
"name": "InputSensor9",
"starttime": "2022-10-18T18:47:09.0Z"
}
],
"general_status": "awake",
"gps": {
"dir": "84",
"dst": "2756",
"key": false,
"lan": "40.70168685913086",
"lon": "-73.81008148193359",
"spd": "40",
"timestamp": "2024-01-01T17:32:41.0Z"
},
"ignition": {
"state": true,
"ts": "2024-05-04T23:57:01.0Z"
},
"modem_rssi": "-51",
"online": true,
"sleep": 2,
"vehicle_name": "Truck 1"
}
]
},
"result": "OK"
}
🟠401Login Required
Modified at 2025-02-03 15:52:30