---
url: "https://developers.vzconnect.com/apis/driver-safety-api-v1/versions/771424fd-b505-49ca-8919-eba371384cba"
---

OpenAPI specification document.

```json
{"openapi":"3.0.0","info":{"title":"Driver Safety API","description":"The Safety REST Service is included within the REVEAL Driver Activity API suite. Integrated customers and partners can leverage this API to retrieve driving style information such as speeding, hard braking, quick starts, and harsh cornering incidents.\n \nThis API will use the following unique identifier(s): Driver Number. Standard REST verbs are applied: GET.\n\nNote: The returned response will be restricted to the REVEAL account's data plan. If the information being queried is outside of the data plan, a 400 Bad Request error response will be returned.","version":"1.0","x-vzc-portal":{"category":["Driver Operations","Compliance & Safety"],"summary":"Aggregate driving behavior metrics - such as speeding, hard braking, and rapid acceleration - tracked by vehicle GPS devices in Reveal.","business":{"description":"aggregates driving behavior metrics - such as speeding, hard braking, and rapid acceleration - tracked by vehicle GPS devices in Reveal. The API delivers 24-hour summary reports and detailed incident logs directly into internal performance dashboards to identify fleet risk patterns. By integrating these safety metrics, organizations can provide targeted driver coaching, lower operational liability, and foster a safer fleet culture.","purpose":"The Driver Safety API enables your organization to retrieve driving style and safety incident information captured by vehicle GPS devices in Reveal.\n\nBy providing detailed incident logs and daily summary counts for individual drivers, it delivers clear visibility into unsafe driving practices.\n\nTracking behaviors such as speeding, hard braking, harsh cornering, and quick starts helps managers evaluate risk and strengthen driver safety programs.\n\nIntegrating safety metrics directly into internal performance dashboards supports targeted driver coaching, reduces vehicle wear, and helps minimize fleet liability."},"use-cases":[{"title":"Behavioral Monitoring","description":"Monitor key driving behaviors - including speeding, hard braking, quick acceleration, and harsh cornering - across daily driver reports."},{"title":"Dashboard & Scorecard Integration","description":"Integrate 24-hour safety summaries and detailed incident data into internal reporting systems and driver scorecards."},{"title":"Proactive Risk Management","description":"Identify fleet risk patterns to support targeted driver coaching, reduce vehicle wear, lower operational liability, and foster a safer fleet culture."},{"title":"Safety Incentives & Gamification","description":"Fuel internal driver reward programs, safety leaderboards, or insurance compliance reporting using automated safety score feeds."}],"icon-svg-base64":"PH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MXpNMjggNzBoMXYxaC0xek0zNCA3M2gxdjFoLTF6TTM2IDc0aDF2MWgtMXoiIGZpbGw9IiMwMDAwMDAiIGZpbGwtb3BhY2l0eT0iMC42MjciLz4NCjxwYXRoIGQ9Ik01MCA0aDF2MWgtMXpNMjEgNWgxdjFoLTF6TTE4IDZoMXYxaC0xek0yMyAxMWgxdjFoLTF6TTIwIDEyaDF2MWgtMXpNNzMgMTJoMXYxaC0xeiIgZmlsbD0iIzAwMDAwMCIgZmlsbC1vcGFjaXR5PSIwLjQzNSIvPg0KPHBhdGggZD0iTTM5IDBoMXYxaC0xek02MiA4aDF2MWgtMXpNMSAzM2gxdjFoLTF6TTE0IDYwaDF2MWgtMXpNMjMgNjBoMXYxaC0xeiIgZmlsbD0iIzAwMDAwMCIgZmlsbC1vcGFjaXR5PSIwLjMxNCIvPg0KPHBhdGggZD0iTTI3IDNoMXYxaC0xek0yNCA0aDF2MWgtMXpNNCAxMWgxdjFoLTF6TTEgMTJoMXYxaC0xek0yNCA2MWgxdjFoLTF6IiBmaWxsPSIjMDAwMDAwIiBmaWxsLW9wYWNpdHk9IjAuNDk4Ii8+DQo8cGF0aCBkPSJNNTggN2gxdjFoLTF6TTE0IDUxaDF2MWgtMXpNNjQgNTRoMXYxaC0xek0xMSA1NmgxdjFoLTF6IiBmaWxsPSIjMDAwMDAwIiBmaWxsLW9wYWNpdHk9IjAuNjg2Ii8+DQo8cGF0aCBkPSJNNzQgMjVoMXYxaC0xek03MiAzNmgxdjFoLTF6IiBmaWxsPSIjMDAwMDAwIiBmaWxsLW9wYWNpdHk9IjAuMzEiLz4NCjxwYXRoIGQ9Ik0yNyA2M2gxdjFoLTF6IiBmaWxsPSIjMDAwMDAwIiBmaWxsLW9wYWNpdHk9IjAuNTYxIi8+DQo8L3N2Zz4NCg=="}},"tags":[{"name":"Driver Safety API","description":"Operations for retrieving a driver's detailed safety events and daily safety event counts for a 24 hour period within a REVEAL account."}],"x-kong-plugin-pre-function":{"enabled":true,"config":{"access":["local uri = kong.request.get_path()\nlocal new_uri = uri:gsub('^/da/v1', '/db/v1')\nkong.service.request.set_path(new_uri)","local CLAIM = \"reveal_account_id\"\nlocal SEP   = \"_\"\nngx.req.clear_header(\"apikey\")\nlocal auth = kong.request.get_header(\"authorization\")\nif not auth then return end\nlocal app_id = auth:match(\"[Aa]tmosphere_app_id%s*=%s*([^,%s]+)\")\nif not app_id then return end\napp_id = app_id:match('^\"(.*)\"$') or app_id:match(\"^'(.*)'$\") or app_id\nlocal token = auth:match(\"[Bb]earer%s+([^%s,]+)\")\nlocal payload = token and token:match(\"^[^.]+%.([^.]+)%.\")\nif not payload then return end\npayload = payload:gsub(\"-\", \"+\"):gsub(\"_\", \"/\")\npayload = payload .. string.rep(\"=\", (4 - #payload % 4) % 4)\nlocal json = ngx.decode_base64(payload)\nif not json then return end\nlocal account_id = json:match('\"' .. CLAIM .. '\"%s*:%s*\"?([^\",}%s]+)')\nif not account_id then return end\nngx.req.set_header(\"apikey\", app_id .. SEP .. account_id)"]}},"paths":{"/da/v1/driversafety/{drivernumber}":{"get":{"summary":"Get Driver Safety by Driver","description":"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.","operationId":"getDriverSafetyEvents","tags":["Driver Safety API"],"x-kong-route-defaults":{"strip_path":false,"paths":["~/da/v1/driversafety/[^/]+/?$"]},"parameters":[{"name":"drivernumber","in":"path","required":true,"description":"The Driver Number is associated with a driver record in REVEAL and is unique within an account.","schema":{"type":"string","example":"111925"}},{"name":"requesteddate","in":"query","required":true,"description":"The date to query. Only the date part is used; the time of day is ignored.","schema":{"type":"string","format":"date-time","example":"2017-05-23T00:00:00Z"}}],"responses":{"200":{"description":"Successfully retrieved safety events for the driver.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyIncidentList"},"example":[{"Address":{"AddressLine1":"I-95","AddressLine2":"","Locality":"Stuart","AdministrativeArea":"FL","PostalCode":"34997","Country":"USA"},"DriverNumber":"111925","IncidentDateTimeUtc":"2017-05-23T11:57:07","IncidentDurationInSeconds":2,"IncidentSeverity":"Moderate","IncidentStartingSpeedInKph":30.600000381469727,"IncidentType":"HardBraking","Latitude":27.108964,"Longitude":-80.25919,"VehicleName":"WO 1087","VehicleNumber":"1087"}]}}},"204":{"description":"No safety events found for the driver on the specified date.","content":{"application/json":{}}},"400":{"description":"Bad request. The Authorization header is missing or malformed, or the requested date is in the future, older than one year, or outside the account's data plan.","content":{"application/json":{}}},"401":{"description":"Unauthorized. The token is invalid or expired, or does not belong to an integration user.","content":{"application/json":{}}},"404":{"description":"Driver not found with the specified driver number.","content":{"application/json":{}}},"500":{"description":"Internal server error.","content":{"application/json":{}}}}}},"/da/v1/driversafety/{drivernumber}/counts":{"get":{"summary":"Get Driver Safety Count by Driver","description":"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.","operationId":"getDriverSafetyEventCounts","tags":["Driver Safety API"],"x-kong-route-defaults":{"strip_path":false,"paths":["~/da/v1/driversafety/[^/]+/counts/?$"]},"parameters":[{"name":"drivernumber","in":"path","required":true,"description":"The Driver Number is associated with a driver record in REVEAL and is unique within an account.","schema":{"type":"string","example":"111925"}},{"name":"requesteddate","in":"query","required":true,"description":"The date to query. Only the date part is used; the time of day is ignored.","schema":{"type":"string","format":"date-time","example":"2017-05-23T00:00:00Z"}}],"responses":{"200":{"description":"Successfully retrieved safety event counts for the driver.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafetyCount"},"example":{"DriverNumber":"111925","IncidentDateTimeUtc":"2017-05-23T00:00:00","VehicleIncidentCounts":[{"SpeedIncidentCounts":[{"SpeedUpperRange":94,"SpeedLowerRange":80,"IncidentCount":2},{"SpeedUpperRange":99,"SpeedLowerRange":95,"IncidentCount":1},{"SpeedUpperRange":109,"SpeedLowerRange":100,"IncidentCount":9},{"SpeedUpperRange":144,"SpeedLowerRange":110,"IncidentCount":74},{"SpeedLowerRange":145,"IncidentCount":0}],"HardBrakeCount":1,"QuickStartCount":0,"HarshCorneringCount":0,"VehicleName":"WO 1087","VehicleNumber":"1087"}]}}}},"204":{"description":"No safety events found for the driver on the specified date.","content":{"application/json":{}}},"400":{"description":"Bad request. The Authorization header is missing or malformed, or the requested date is in the future, older than one year, or outside the account's data plan.","content":{"application/json":{}}},"401":{"description":"Unauthorized. The token is invalid or expired, or does not belong to an integration user.","content":{"application/json":{}}},"404":{"description":"Driver not found with the specified driver number.","content":{"application/json":{}}},"500":{"description":"Internal server error.","content":{"application/json":{}}}}}}},"components":{"schemas":{"SafetyCount":{"type":"object","description":"A driver's summary safety report for a 24 hour period.","properties":{"DriverNumber":{"type":"string","description":"Driver Number is the unique identifier for Drivers created within REVEAL.","example":"111925"},"IncidentDateTimeUtc":{"type":"string","format":"date-time","description":"The date and time in UTC for the queried period.","example":"2017-05-23T00:00:00"},"VehicleIncidentCounts":{"type":"array","description":"Summary counts grouped per vehicle associated with the driver.","items":{"$ref":"#/components/schemas/VehicleIncidentCount"}}}},"SafetyIncidentList":{"type":"array","description":"A list of detailed safety incidents.","items":{"$ref":"#/components/schemas/SafetyIncident"}},"SafetyIncident":{"type":"object","description":"A detailed unsafe driving behavior event captured by the GPS device.","properties":{"Address":{"$ref":"#/components/schemas/Address"},"DriverNumber":{"type":"string","description":"Driver Number is the unique identifier for Drivers created within REVEAL.","example":"111925"},"IncidentDateTimeUtc":{"type":"string","format":"date-time","description":"The date and time in UTC that the safety event occurred.","example":"2017-05-23T11:57:07"},"IncidentDurationInSeconds":{"type":"number","description":"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},"IncidentSeverity":{"type":"string","description":"Harsh driving events recorded by REVEAL will be categorized as MODERATE or SEVERE.","enum":["Moderate","Severe"],"example":"Moderate"},"IncidentStartingSpeedInKph":{"type":"number","format":"double","description":"The harsh driving incident's starting speed value in kilometers per hour.","example":30.600000381469727},"IncidentType":{"type":"string","description":"Incident type, for example HardBraking, HardAcceleration (quick start) or HardCornering.","example":"HardBraking"},"Latitude":{"type":"number","format":"double","description":"The latitude coordinates for the incident location.","example":27.108964},"Longitude":{"type":"number","format":"double","description":"The longitude coordinates for the incident location.","example":-80.25919},"VehicleName":{"type":"string","description":"The Vehicle Name within REVEAL for the vehicle that reported the incident.","example":"WO 1087"},"VehicleNumber":{"type":"string","nullable":true,"description":"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"}}},"VehicleIncidentCount":{"type":"object","description":"Summary counts of safety incidents for a vehicle associated with the driver over the 24 hour period.","properties":{"SpeedIncidentCounts":{"type":"array","description":"The summary of high speeding incidents. There are 5 high speed threshold buckets that will be returned to the user.","items":{"$ref":"#/components/schemas/SpeedIncidentCount"}},"HardBrakeCount":{"type":"integer","description":"The total number of hard brake incidents reported by the driver for the selected 24 hour period.","example":1},"QuickStartCount":{"type":"integer","description":"The total number of quick start incidents reported by the driver for the selected 24 hour period.","example":0},"HarshCorneringCount":{"type":"integer","description":"The total number of harsh cornering incidents reported by the driver for the selected 24 hour period.","example":0},"VehicleName":{"type":"string","description":"The Vehicle Name within REVEAL for the vehicle that reported the incidents.","example":"WO 1087"},"VehicleNumber":{"type":"string","nullable":true,"description":"The Vehicle Number is an optional field in REVEAL. This field can be returned as NULL.","example":"1087"}}},"Address":{"type":"object","description":"Contains the global standards for address components.","properties":{"AddressLine1":{"type":"string","description":"Location specific identification such as a house number.","example":"I-95"},"AddressLine2":{"type":"string","description":"Additional information to identify location such as an apartment number.","example":""},"Locality":{"type":"string","description":"City, town, etc.","example":"Stuart"},"AdministrativeArea":{"type":"string","description":"State, province, etc.","example":"FL"},"PostalCode":{"type":"string","description":"Postal code.","example":"34997"},"Country":{"type":"string","description":"Country.","example":"USA"}}},"SpeedIncidentCount":{"type":"object","description":"A high-speed threshold bucket and the count of incidents in it. All speed threshold values are a range in kilometers per hour and coincide with REVEAL features. Buckets: 94-80 kmph, 99-95 kmph, 109-100 kmph, 144-110 kmph, and above 145 kmph.","properties":{"SpeedUpperRange":{"type":"integer","description":"The upper bound of the speed range (kmph) for this bucket. Not present for the highest bucket (speeds above 145 kmph).","example":94},"SpeedLowerRange":{"type":"integer","description":"The lower bound of the speed range (kmph) for this bucket.","example":80},"IncidentCount":{"type":"number","description":"The number of high speeding incidents that occurred for this bucket.","example":2}}}}},"servers":[{"url":"https://api.us.vzconnect.com"}]}
```
