---
title: "Retrieve key fobs assigned to a driver."
url: "https://developers.vzconnect.com/apis/driver-api/versions/dd59d93e-671c-494a-b1e2-63fbd7c9d7da/operations/getDriverKeys"
---

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

# Retrieve key fobs assigned to a driver.

`GET` `/cmd/v1/drivers/{drivernumber}/keys`

Operation ID: `getDriverKeys`

Returns the key fobs assigned to the specified driver as uppercase hexadecimal strings. Returns an empty array when the driver has no key fobs.

## Path parameters

- `drivernumber` (string, required) - The Driver Number whose key fobs are requested.

## Responses

- `200` - Successfully retrieved the driver's key fob assignments.
- `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}/keys:
    get:
      summary: Retrieve key fobs assigned to a driver.
      description: Returns the key fobs assigned to the specified driver as uppercase
        hexadecimal strings. Returns an empty array when the driver has no key
        fobs.
      operationId: getDriverKeys
      tags:
        - Driver API
      parameters:
        - name: drivernumber
          in: path
          required: true
          description: The Driver Number whose key fobs are requested.
          schema:
            type: string
      responses:
        "200":
          description: Successfully retrieved the driver's key fob assignments.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/KeyFobList"
              example:
                - "23456789"
        "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:
    KeyFobList:
      type: array
      description: A list of key fob identifiers. Each id is a hexadecimal string of
        8, 12 or 16 characters (12 and 16 character forms are reduced to 8).
        Returned ids are uppercase hexadecimal.
      items:
        type: string
        example: "23456789"
      example:
        - "23456789"
    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.
```
