A safety report is an overview of safety driving and events.
This API can get event and trip summaries and the trend type of 4 types of events:
OK
{- "uq": "3903dc78-9349-41a0-9662-d1e33de117f8",
- "doc_version": "latest",
- "result": true,
- "code": "S00000",
- "message": "string",
- "build": "string",
- "summary": {
- "event_category": [
- {
- "category": "string",
- "count": 0
}
], - "trip": {
- "total_distance": 0,
- "total_idling": 0,
- "total_time": 0,
- "total_trips": 0
}
}, - "trend": [
- {
- "events": [
- {
- "date": "string",
- "types": [
- {
- "type": 1,
- "count": 0
}
], - "severity": {
- "lv_1": 0,
- "lv_2": 0,
- "lv_3": 0
}
}
], - "trend_type": "string"
}
]
}
This API is used to get and query event list within time period.
OK
{- "uq": "3903dc78-9349-41a0-9662-d1e33de117f8",
- "doc_version": "latest",
- "result": true,
- "code": "S00000",
- "message": "string",
- "build": "string",
- "count": 0,
- "data": [
- {
- "asset_info": {
- "uploading": true,
- "has_video": true
}, - "car_id": 0,
- "clicked_count": 0,
- "device_cid": "string",
- "driver_avatar": "string",
- "driver_id": 0,
- "driver_name": "string",
- "driver_status": 0,
- "expired": true,
- "expiry": 0,
- "is_new": true,
- "lat": 0,
- "lng": 0,
- "name": "string",
- "recording_id": 0,
- "severity_level": 0,
- "tag": 0,
- "ticket": "string",
- "ticket_linked": "string",
- "timestamp": 0,
- "trip_id": 0,
- "type": 1,
- "type_name": "string",
- "upload_status": 0,
- "uuid": "string",
- "video_uploaded": 0,
- "videos_count": 0,
- "videos_total_count": 0
}
]
}
This API is used to get the detail information of event
OK
{- "uq": "3903dc78-9349-41a0-9662-d1e33de117f8",
- "doc_version": "latest",
- "result": true,
- "code": "S00000",
- "message": "string",
- "build": "string",
- "data": [
- {
- "car_id": 0,
- "clicked_count": 0,
- "coaching_id": 0,
- "comments_count": 0,
- "device_cid": "string",
- "driver_avatar": "string",
- "driver_id": 0,
- "driver_name": "string",
- "driver_status": 0,
- "expired": true,
- "expiry": 0,
- "is_highlight": "string",
- "is_new": true,
- "lat": 0,
- "lng": 0,
- "name": "string",
- "organization_id": 0,
- "over_speed_kph": 0,
- "over_speed_severity": 0,
- "recording_id": 0,
- "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
- "session_type": "string",
- "severity_level": 0,
- "speed_data": {
- "is_over_speed": true,
- "over_speed_kph": 0,
- "over_speed_severity": 0,
- "speed_kph": 0,
- "speed_limit_kph": 0
}, - "speed_kph": 0,
- "speed_limit_kph": 0,
- "tag": 0,
- "ticket": "string",
- "ticket_linked": "string",
- "timestamp": 0,
- "trip_id": 0,
- "type": 1,
- "type_name": "string",
- "upload_status": 0,
- "uuid": "string",
- "video_uploaded": 0,
- "videos_count": 0,
- "total_videos": 0,
- "videos_total_count": 0,
- "event_assets": {
- "capture_mode": {
- "snapshot": [
- "string"
], - "video": [
- "string"
]
}, - "total_snapshots": 0,
- "total_videos": 0
}
}
]
}
This API is used to get the video asset details information of event
OK
{- "uq": "3903dc78-9349-41a0-9662-d1e33de117f8",
- "doc_version": "latest",
- "result": true,
- "code": "S00000",
- "message": "string",
- "build": "string",
- "data": {
- "device_name": "string",
- "duration": 0,
- "end_timestamp": 0,
- "event_timestamp": 0,
- "expiry": 0,
- "id": 0,
- "nmea_should_end_at": 0,
- "nmea_should_start_at": 0,
- "nmea_url": "string",
- "organization_id": 0,
- "snapshots": [
- {
- "capture_mode": "string",
- "ticket": "string",
- "url": "string"
}
], - "start_timestamp": 0,
- "ticket": "string",
- "ticket_linked": "string",
- "timestamp": 0,
- "title": "string",
- "type": 1,
- "video_end_timestamp": 0,
- "video_start_timestamp": 0,
- "video_triggered_timestamp": 0,
- "videos": [
- {
- "video_url": "string",
- "screenshot_url": "string",
- "origin_file_name": "string",
- "general_format": "string",
- "general_filesize": 0,
- "general_duration": 0,
- "video_streamorder": 0,
- "video_codecid": "string",
- "video_duration": 0,
- "video_bitrate": 0,
- "video_width": 0,
- "video_height": 0,
- "video_framerate": 0,
- "video_colorspace": "string",
- "audio_streamorder": 0,
- "audio_format": "string",
- "audio_codecid": "string",
- "audio_duration": 0,
- "audio_bitrate": 0,
- "audio_bitrate_nominal": 0,
- "video_start_at": 0,
- "video_end_at": 0,
- "capture_mode": "string",
- "video_id": 0
}
], - "video_uploaded": 0,
- "videos_total_count": 0,
- "videos_count": 0,
- "event_assets": {
- "capture_mode": {
- "snapshot": [
- "string"
], - "video": [
- "string"
]
}, - "total_snapshots": 0,
- "total_videos": 0
}
}
}
This API is used to get event videos that upload manually.
The list contains:
device CID, event name, event expiration status, left days to expired, latitude and longitude of the event, device, event recording video ID, tag info, trip ID
OK
{- "uq": "3903dc78-9349-41a0-9662-d1e33de117f8",
- "doc_version": "latest",
- "result": true,
- "code": "S00000",
- "message": "string",
- "build": "string",
- "count": 0,
- "data": [
- {
- "clicked_count": 0,
- "device_cid": "string",
- "event_name": "string",
- "expired": true,
- "expiry": 0,
- "id": 0,
- "images": [
- {
- "url": "string"
}
], - "is_new": true,
- "lat": 0,
- "lng": 0,
- "name": "string",
- "recording_id": 0,
- "tag": 0,
- "ticket": "string",
- "timestamp": 0,
- "trip_id": 0,
- "type": 27,
- "type_name": "string",
- "uuid": "string"
}
]
}
This API can send a remote command to request the device to upload a video clip asynchronously, regardless of whether the device is online or not when the request is made.
The response includes a task ID that allows you to check the result with V2/event/taskResult/{taskId} later.
This feature was introduced from region 43.
The device won't respond to the remote command before the version of region 43.
cam_id required | string non-empty The cameria id, please refer to Camera capture mode and Camera ID Additionally, you can set cam_id to 'ALL' to upload all video clips corresponding to the target_timestamp parameter.
|
file_name required | string non-empty The desired file name to save as |
target_timestamp required | integer <int32> The desired timestamp to include in the video clip |
duration_in_seconds | integer or null <int32> [ 6 .. 60 ] Duration of the video |
OK
{- "cam_id": "string",
- "file_name": "string",
- "target_timestamp": 0,
- "duration_in_seconds": 6
}
{- "uq": "3903dc78-9349-41a0-9662-d1e33de117f8",
- "doc_version": "latest",
- "result": true,
- "code": "S00000",
- "message": "string",
- "build": "string",
- "data": {
- "task_id": "string"
}
}
This API allowing you to query the process result of a remote task like
OK
{- "uq": "3903dc78-9349-41a0-9662-d1e33de117f8",
- "doc_version": "latest",
- "result": true,
- "code": "S00000",
- "message": "string",
- "build": "string",
- "data": {
- "process_history": [
- {
- "desc": "string",
- "state": "string",
- "report_at": 0,
- "code": "string"
}
], - "process_state": "string",
- "event_info": {
- "display_name": "string",
- "video_count": 0
}, - "video_info": {
- "duration": 0,
- "device_name": "string",
- "video_start_timestamp": 0,
- "video_end_timestamp": 0,
- "title": "string",
- "ticket": "string",
- "expiry": 0
}, - "videos": [
- {
- "video_url": "string",
- "screenshot_url": "string",
- "origin_file_name": "string",
- "general_format": "string",
- "general_filesize": 0,
- "general_duration": 0,
- "video_streamorder": 0,
- "video_codecid": "string",
- "video_duration": 0,
- "video_bitrate": 0,
- "video_width": 0,
- "video_height": 0,
- "video_framerate": 0,
- "video_colorspace": "string",
- "audio_streamorder": 0,
- "audio_format": "string",
- "audio_codecid": "string",
- "audio_duration": 0,
- "audio_bitrate": 0,
- "audio_bitrate_nominal": 0,
- "video_start_at": 0,
- "video_end_at": 0,
- "capture_mode": "string"
}
]
}
}
This API can discard an event.
Deleting the event will not update the score for that specific trip; instead, it will be reflected in the driver's overall driving score as a positive adjustment.
Please note that this action is irreversible.
OK