---
title: "Retrieve a specific driver by driver number."
url: "https://developers.vzconnect.com/apis/driver-api/versions/dd59d93e-671c-494a-b1e2-63fbd7c9d7da/operations/getDriverByNumber"
---

> Full API specification: https://developers.vzconnect.com/apis/driver-api/versions/dd59d93e-671c-494a-b1e2-63fbd7c9d7da.md

# Retrieve a specific driver by driver number.

`GET` `/cmd/v1/drivers/{driverNumber}`

Operation ID: `getDriverByNumber`

Retrieve a specific driver by Driver Number.

## Path parameters

- `driverNumber` (string, required) - The Driver Number, the unique identifier used to reference the driver within the API.

## Responses

- `200` - Successfully retrieved the driver details.
- `400` - Bad request. The driver number format is invalid.
- `401` - Unauthorized. Authentication credentials are missing or invalid.
- `404` - Driver not found with the specified driver number.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Driver API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /cmd/v1/drivers/{driverNumber}:
    get:
      summary: Retrieve a specific driver by driver number.
      description: Retrieve a specific driver by Driver Number.
      operationId: getDriverByNumber
      tags:
        - Driver API
      parameters:
        - name: driverNumber
          in: path
          required: true
          description: The Driver Number, the unique identifier used to reference the
            driver within the API.
          schema:
            type: string
            example: "100096"
      responses:
        "200":
          description: Successfully retrieved the driver details.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DriverResource"
              example:
                Driver:
                  CreatedDateUTC: 2016-08-08T17:51:04.093
                  DriverNumber: "100096"
                  EmailAddress: user@example.com
                  FirstName: Chris
                  LastName: Abernathy
                  EnableMobileAccess: false
                  PhoneNumber: "5551234567"
                  DriverId: 1
                Links:
                  KeyFobs:
                    Href: https://vzc.local/drivers/100096/keys
                  Self:
                    Href: https://vzc.local/drivers/100096
        "400":
          description: Bad request. The driver number format is invalid.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Unauthorized. Authentication credentials are missing or invalid.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: Driver not found with the specified driver number.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
components:
  schemas:
    DriverResource:
      type: object
      description: A driver together with related API links.
      required:
        - Driver
        - Links
      properties:
        Driver:
          $ref: "#/components/schemas/Driver"
        Links:
          type: object
          description: Always returned. Href values are empty strings when the driver has
            no Driver Number.
          required:
            - KeyFobs
            - Self
          properties:
            KeyFobs:
              allOf:
                - $ref: "#/components/schemas/Link"
              description: The driver's key fob(s) can be found using the key fob API link.
            Self:
              $ref: "#/components/schemas/Link"
    Error:
      type: object
      description: Generic error response. The documentation does not define an
        explicit error body schema.
      properties:
        message:
          type: string
          description: A human-readable description of the error.
    Driver:
      type: object
      description: A driver record within a REVEAL account.
      required:
        - CreatedDateUTC
        - DriverNumber
        - EmailAddress
        - FirstName
        - LastName
        - EnableMobileAccess
        - PhoneNumber
        - DriverId
      properties:
        CreatedDateUTC:
          type: string
          format: date-time
          description: The date the driver was created within the REVEAL account.
          example: 2016-08-08T17:51:04.093
        DriverNumber:
          type: string
          nullable: true
          description: The Driver Number is the unique identifier that will be used to
            reference the driver within the API. The Driver Number is not a
            mandatory field within the REVEAL account, but is required for the
            API.
          example: "100096"
        EmailAddress:
          type: string
          description: The email address for the driver. The driver email address is
            optional. It is mandatory for utilizing driver related applications
            such as the Field App or LogBook. A driver's email address must be
            unique within an account.
          example: user@example.com
        FirstName:
          type: string
          description: The first name of the driver.
          example: Chris
        LastName:
          type: string
          description: The last name of the driver.
          example: Abernathy
        EnableMobileAccess:
          type: boolean
          default: false
          description: Boolean field for true or false. Default is false. True indicates
            the driver will have access to mobile applications.
          example: false
        PhoneNumber:
          type: string
          nullable: true
          description: The phone number for the driver.
          example: "5551234567"
        DriverId:
          type: integer
          description: An integer that serves as a primary key, uniquely identifying each
            record in the table.
          example: 1
    Link:
      type: object
      description: An API hyperlink reference.
      properties:
        Href:
          type: string
          description: The URL of the related resource.
```
