---
title: "Assign a key fob to a driver."
url: "https://developers.vzconnect.com/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2/operations/assignDriverKey"
---

> Full API specification: https://developers.vzconnect.com/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2.md

# Assign a key fob to a driver.

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

Operation ID: `assignDriverKey`

## Before you start Before you make your first API call, make sure you have the following: - Your Verizon Connect account manager or administrator has requested a Client ID and Client Secret for your integration in Reveal Marketplace. - You have the Client ID and Client Secret for your integration. - Get an access token using your Client ID and Client Secret. For instructions, read [get your token](/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2/operations/getToken). > If you are maintaining an existing integration configured before **November 27, 2026** using an **App ID** and **legacy credentials**, follow the [Call the APIs with legacy credentials Guide](/guides/legacy). ## Purpose Assign key fobs to the driver record. The key fob(s) are entered as part of the body of the request.

## Path parameters

- `drivernumber` (string, required) - The Driver Number to assign key fobs to.

## Request body (required)

Content types: `application/json`

## Responses

- `201` - Key fob successfully assigned to the driver.
- `400` - Bad request. The request body is invalid or the key fob is already assigned.
- `401` - Unauthorized. Authentication credentials are missing or invalid.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Verizon Connect API
  version: 1.0.0
servers:
  - url: https://api.us.vzconnect.com
paths:
  /cmd/v1/drivers/{drivernumber}/keys:
    post:
      summary: Assign a key fob to a driver.
      description: |-
        ## Before you start

        Before you make your first API call, make sure you have the following:

        - Your Verizon Connect account manager or administrator has requested a Client ID and Client Secret for your integration in Reveal Marketplace.
        - You have the Client ID and Client Secret for your integration.
        - Get an access token using your Client ID and Client Secret. For instructions, read [get your token](/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2/operations/getToken).

        > If you are maintaining an existing integration configured before **November 27, 2026** using an **App ID** and **legacy credentials**, follow the [Call the APIs with legacy credentials Guide](/guides/legacy).

        ## Purpose

        Assign key fobs to the driver record. The key fob(s) are entered as part of the body of the request.
      operationId: assignDriverKey
      tags:
        - Driver API
      parameters:
        - name: drivernumber
          in: path
          required: true
          description: The Driver Number to assign key fobs to.
          schema:
            type: string
      requestBody:
        description: Key fob assignment details including the key fob identifier.
        content:
          application/json:
            schema:
              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"
            example:
              - "23456789"
        required: true
      responses:
        "201":
          description: Key fob successfully assigned to the driver.
          headers:
            Location:
              description: URL of the driver's key fob resource.
              schema:
                type: string
                example: https://vzc.local/drivers/100096/keys
          content:
            application/json:
              schema:
                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"
              example:
                - "23456789"
        "400":
          description: Bad request. The request body is invalid or the key fob is already
            assigned.
          content:
            application/json:
              schema:
                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.
                title: Error
        "401":
          description: Unauthorized. Authentication credentials are missing or invalid.
          content:
            application/json:
              schema:
                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.
                title: Error
        "500":
          description: Internal server error.
          content:
            application/json:
              schema:
                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.
                title: Error
```
