Get company events
GET
https://fleet.roscolive.com/api/v1.0/partners/companies/{company_name}/events
companyeventlist
User Role Permissions
Role | Permission |
---|---|
Partner | |
Partner View | |
Custom Partner | |
Fleet Manager | |
Group Manager | |
User | |
Custom User |
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://fleet.roscolive.com/api/v1.0/partners/companies//events?start_ts=20240728092243&end_ts=20240728160819&order=vehicle_name&direction=asc&search=&filters=gsensor,speed&page_number=2&page_size=50&search_by_id=false&search_type=vehicle&is_deleted=false&device_ids=12345,67890&exclude_device_ids=98765,43210&feedback=false'
Response Response Example
200 - valid get company events
{
"meta": {
"code": 200
},
"response": {
"events": [
{
"accurate_duration": 9,
"company_id": 825,
"created_by": 0,
"createtime": "Thu, 21 Nov 2024 22:24:09 GMT",
"custom_event_type": null,
"data": null,
"device_id": "3868616673",
"driver_card_id": "2A74F83A",
"driver_email": "jsmith@example.com",
"driver_id": 2850,
"driver_name": "John Smith",
"duration": 10,
"email_sent": "alert",
"end_ts": "Thu, 21 Nov 2024 22:24:12 GMT",
"event_display_type": "",
"event_notes": null,
"event_type": "Drowsiness",
"flagged": false,
"geotab_driver": null,
"geotab_user_id": null,
"groups": [
"Group A"
],
"hash": "5416c312a85711efa979069d5833a13f",
"id": 2614955,
"impact_score": true,
"is_datausage_locked": false,
"is_flood": false,
"last_viewed": {
"viewed_ts": null,
"viewer": {
"first_name": null,
"last_name": null
}
},
"lat": 40.6243,
"lon": -73.9104,
"meta_json": true,
"mp4_1": true,
"mp4_2": true,
"mp4_3": true,
"mp4_4": false,
"nvr_filename": "0000000000119197-241121-172401-172412-10O200000012.nvr",
"old_device_id": null,
"rule": null,
"size": 15.6885,
"snapshot_1": "https://prod1.roscocloud.com/rosco-user-825/...",
"snapshot_2": "https://prod1.roscocloud.com/rosco-user-825/...",
"snapshot_3": "https://prod1.roscocloud.com/rosco-user-825/...",
"snapshot_status": "SNAPSHOT_UPLOADED",
"start_ts": "Thu, 21 Nov 2024 22:24:02 GMT",
"status": "used",
"timestamp": "Thu, 21 Nov 2024 22:24:07 GMT",
"type": "Drowsiness/Head Down",
"uploaded_timestamp": "Fri, 22 Nov 2024 00:00:33 GMT",
"uploading_status": "VIDEO_UPLOADED",
"vehicle_name": "Truck A",
"video_option": "video_snapshot"
}
],
"total_number": 1
},
"result": "OK"
}
Request
Path Params
company_name
string
required
Query Params
start_ts
string <date-time>
required
Example:
20240728092243
end_ts
string <date-time>
optional
Default:
current date and time
Example:
20240728160819
order
enum<string>
optional
direction
value is applied toAllowed values:
timestampevent_typevehicle_namegroupssizesnapshot_statuslast_viewedidstart_tsend_ts
Example:
vehicle_name
direction
enum<string>
optional
order
valueAllowed values:
ascdesc
Example:
asc
search
string
optional
search_type
value.search_type
:vehicle
: search on vehicle namesdriver
: search on driver namesevent
: search on event IDfilters
string
optional
Values from:
Example:
gsensor,speed
page_number
string
optional
Example:
2
page_size
string
optional
Example:
50
search_by_id
boolean
deprecated
Example:
false
search_type
enum<string>
optional
search
keyword valueAllowed values:
eventdrivervehicle
Example:
vehicle
is_deleted
boolean
optional
true
Example:
false
device_ids
string
optional
Example:
12345,67890
exclude_device_ids
string
optional
Example:
98765,43210
feedback
boolean
optional
Example:
false
Body Params multipart/form-data
object {0}
Responses
Modified at 2025-02-03 17:12:44