Get company events
GET
/partners/companies/{company_name}/eventsGet all events of this company during a specific time period.
Roles with endpoint access
Role | Permission |
---|---|
Partner | |
Partner View | |
Custom Partner | |
Fleet Manager | |
Group Manager | |
User | |
Custom User |
Request
Company name in RoscoLive
UTC start date of event list (YYYYMMDDhhmmss)
UTC end date of event list (YYYYMMDDhhmmss). Defaults to current date and time if not passed with request.
Column in which direction
value is applied to
Direction of column order for order
value
Keyword search based on search_type
value.
If search_type
:
vehicle
: search on vehicle namesdriver
: search on driver namesevent
: search on event ID
Comma-separated list of event types to exclude from results.
Values from:
- gsensor
- speed
- critical_gsensor
- driver
- sensor
- camerablock
- pending
- custom
- headway
- pedestrian
- forward_collision
- lane_departure
- flood
Page number for pagination
Size of records to include with each page for pagination
Flag if searching by event ID
Search category for search
keyword value
Flag to only return deleted events in response if set to true
List of comma-separated device IDs to return events for in response
List of comma-separated device IDs to exclude events for in response
Request samples
Responses
Request metadata object
HTTP status code returned by server
Contains response data
"OK" if request successful, otherwise "Fail"
{
"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"
}