---
title: "Get Driver Safety by Driver"
url: "https://developers.vzconnect.com/apis/driver-safety-api-v1/versions/771424fd-b505-49ca-8919-eba371384cba/operations/getDriverSafetyEvents"
---

> Full API specification: https://developers.vzconnect.com/apis/driver-safety-api-v1/versions/771424fd-b505-49ca-8919-eba371384cba.md

# Get Driver Safety by Driver

`GET` `/da/v1/driversafety/{drivernumber}`

Operation ID: `getDriverSafetyEvents`

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.

## Path parameters

- `drivernumber` (string, required) - The Driver Number is associated with a driver record in REVEAL and is unique within an account.

## Query parameters

- `requesteddate` (string, date-time, required) - The date to query. Only the date part is used; the time of day is ignored.

## Responses

- `200` - Successfully retrieved safety events for the driver.
- `204` - No safety events found for the driver on the specified date.
- `400` - 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.
- `401` - Unauthorized. The token is invalid or expired, or does not belong to an integration user.
- `404` - Driver not found with the specified driver number.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Driver Safety API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
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: {}
components:
  schemas:
    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"
    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
```
