Driver Safety API
Operations for retrieving a driver’s detailed safety events and daily safety event counts for a 24 hour period within a REVEAL account.
Get Driver Safety by Driver
Retrieves a driver’s detailed safety report for a 24 hour period. The integration user provides a Driver Number and a requested date. Only the date part is used; the time of day is ignored.
Query Parameters
The date to query. Only the date part is used; the time of day is ignored.
Example:2017-05-23T00:00:00Z
Path Parameters
The Driver Number is associated with a driver record in REVEAL and is unique within an account.
Example:111925
Response
application/json
Response
Successfully retrieved safety events for the driver.
SafetyIncidentList
A detailed unsafe driving behavior event captured by the GPS device.
Contains the global standards for address components.
Show Child Parameters
Driver Number is the unique identifier for Drivers created within REVEAL.
Example:111925
The date and time in UTC that the safety event occurred.
Example:2017-05-23T11:57:07
The time in seconds for the duration of the safety event. Note, not all safety incident types will show a duration in seconds.
Example:2
Harsh driving events recorded by REVEAL will be categorized as MODERATE or SEVERE.
Allowed values:ModerateSevere
Example:Moderate
The harsh driving incident’s starting speed value in kilometers per hour.
Example:30.600000381469727
Incident type, for example HardBraking, HardAcceleration (quick start) or HardCornering.
Example:HardBraking
The latitude coordinates for the incident location.
Example:27.108964
The longitude coordinates for the incident location.
Example:-80.25919
The Vehicle Name within REVEAL for the vehicle that reported the incident.
Example:WO 1087
The Vehicle Number is an optional field in REVEAL. If using APIs, the Vehicle Number is often required as the vehicle’s unique identifier. However, this field can be returned as NULL.
Example:1087
Get Driver Safety Count by Driver
Retrieves a driver’s summary safety report for a 24 hour period. This method does not provide precise details for all safety events recorded by the driver but a count of any that occurred for the day selected. The integration user provides a Driver Number and a requested date. Only the date part is used; the time of day is ignored.
Query Parameters
The date to query. Only the date part is used; the time of day is ignored.
Example:2017-05-23T00:00:00Z
Path Parameters
The Driver Number is associated with a driver record in REVEAL and is unique within an account.
Example:111925
Response
application/json
Response
Successfully retrieved safety event counts for the driver.
SafetyCount
A driver’s summary safety report for a 24 hour period.
Driver Number is the unique identifier for Drivers created within REVEAL.
Example:111925
The date and time in UTC for the queried period.
Example:2017-05-23T00:00:00
Summary counts of safety incidents for a vehicle associated with the driver over the 24 hour period.
Show Child Parameters
SafetyCount
objectA driver’s summary safety report for a 24 hour period.
Driver Number is the unique identifier for Drivers created within REVEAL.
Example:111925
The date and time in UTC for the queried period.
Example:2017-05-23T00:00:00
Summary counts of safety incidents for a vehicle associated with the driver over the 24 hour period.
Show Child Parameters
SafetyIncidentList
arrayA list of detailed safety incidents.
Contains the global standards for address components.
Show Child Parameters
Driver Number is the unique identifier for Drivers created within REVEAL.
Example:111925
The date and time in UTC that the safety event occurred.
Example:2017-05-23T11:57:07
The time in seconds for the duration of the safety event. Note, not all safety incident types will show a duration in seconds.
Example:2
Harsh driving events recorded by REVEAL will be categorized as MODERATE or SEVERE.
Allowed values:ModerateSevere
Example:Moderate
The harsh driving incident’s starting speed value in kilometers per hour.
Example:30.600000381469727
Incident type, for example HardBraking, HardAcceleration (quick start) or HardCornering.
Example:HardBraking
The latitude coordinates for the incident location.
Example:27.108964
The longitude coordinates for the incident location.
Example:-80.25919
The Vehicle Name within REVEAL for the vehicle that reported the incident.
Example:WO 1087
The Vehicle Number is an optional field in REVEAL. If using APIs, the Vehicle Number is often required as the vehicle’s unique identifier. However, this field can be returned as NULL.
Example:1087