---
title: "Retrieve all vehicles in the account."
url: "https://developers.vzconnect.com/apis/vehicle-api-v1/versions/3941fe83-a6d1-4bef-90e3-c94cadaf0d4d/operations/getVehicles"
---

> Full API specification: https://developers.vzconnect.com/apis/vehicle-api-v1/versions/3941fe83-a6d1-4bef-90e3-c94cadaf0d4d.md

# Retrieve all vehicles in the account.

`GET` `/cmd/v1/vehicles`

Operation ID: `getVehicles`

Retrieve a list of vehicles within the account with additional meta data. Vehicles marked as hidden in Reveal are not returned. Non-powered assets are not returned by this method.

## Query parameters

- `vehicleIds` (string, optional) - Optional comma-separated list of VehicleId values. When provided, only the matching vehicles are returned.

## Responses

- `200` - Successfully retrieved the list of vehicles.
- `204` - No vehicles found in the account.
- `400` - Bad request.
- `401` - Unauthorized. Authentication credentials are missing or invalid.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Vehicle API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /cmd/v1/vehicles:
    get:
      summary: Retrieve all vehicles in the account.
      description: Retrieve a list of vehicles within the account with additional meta
        data. Vehicles marked as hidden in Reveal are not returned. Non-powered
        assets are not returned by this method.
      operationId: getVehicles
      tags:
        - Vehicle API
      parameters:
        - name: vehicleIds
          in: query
          required: false
          description: Optional comma-separated list of VehicleId values. When provided,
            only the matching vehicles are returned.
          schema:
            type: string
            example: 1,2,3
      responses:
        "200":
          description: Successfully retrieved the list of vehicles.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/Vehicle"
              example:
                - Name: FD 0339
                  VehicleNumber: "33901"
                  RegistrationNumber: null
                  VIN: null
                  Make: FORD
                  Year: 2010
                  Model: ECONOLINE
                  TankCapacity: null
                  HighwayMPG: null
                  CityMPG: null
                  VehicleSize: 0
                  HasNavigationDevice: true
                  FuelType: 1
                  HasTachograph: false
                  VehicleId: 1
                  FleetItemId: 81b66e37-3ceb-46a8-96ca-ce31d8d1e070
        "204":
          description: No vehicles found in the account.
          content:
            application/json: {}
        "400":
          description: Bad request.
          content:
            application/json: {}
        "401":
          description: Unauthorized. Authentication credentials are missing or invalid.
          content:
            application/json: {}
        "500":
          description: Internal server error.
          content:
            application/json: {}
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/cmd/v1/vehicles/?$
components:
  schemas:
    Vehicle:
      type: object
      description: A vehicle record as returned by the GET Vehicle methods.
      properties:
        Name:
          type: string
          nullable: true
          description: The Vehicle Name as recorded within the REVEAL vehicle profile.
          example: FD 0339
        VehicleNumber:
          type: string
          description: The Vehicle Number is the unique identifier used to reference the
            vehicle within the API. It is not mandatory within the REVEAL
            account but is required for the API.
          example: "33901"
        RegistrationNumber:
          type: string
          nullable: true
          description: Registration Number is not required within the REVEAL vehicle
            profile. When provided it must be unique within an account.
          example: null
        VIN:
          type: string
          nullable: true
          description: Vehicle Identification Number, the unique serial code provided by
            the automotive manufacturer for the vehicle.
          example: null
        Make:
          type: string
          nullable: true
          description: The vehicle manufacturer's brand.
          example: FORD
        Year:
          type: integer
          nullable: true
          description: The year the vehicle was manufactured.
          example: 2010
        Model:
          type: string
          nullable: true
          description: The type of vehicle by the manufacturer.
          example: ECONOLINE
        TankCapacity:
          type: number
          format: double
          nullable: true
          description: Tank Capacity provided and referenced in liters. Not required, but
            a key element when using Fuel Card features.
          example: 113.562353673961
        HighwayMPG:
          type: number
          format: double
          nullable: true
          description: Estimated Highway MPG provided by the customer, referenced in
            liters. Not required, but a key element when using Fuel Card
            features.
          example: 6.72042
        CityMPG:
          type: number
          format: double
          nullable: true
          description: Estimated City MPG provided by the customer, referenced in liters.
            Not required, but a key element when using Fuel Card features.
          example: 11.76073
        VehicleSize:
          type: integer
          description: "Vehicle Size classification. 0: Light Duty, 1: Medium Duty, 2:
            Heavy Duty, 3: Super Heavy Duty. Defaults to Light Duty."
          enum:
            - 0
            - 1
            - 2
            - 3
          default: 0
          example: 0
        HasNavigationDevice:
          type: boolean
          description: Indicates whether the vehicle has a Garmin navigation device
            installed.
          example: true
        FuelType:
          type: integer
          description: "The Fuel Type of the vehicle. 0: Not set, 1: Unleaded, 2: Diesel,
            3: Electric."
          enum:
            - 0
            - 1
            - 2
            - 3
          example: 1
        HasTachograph:
          type: boolean
          description: Indicates whether the vehicle has a tachograph device installed.
          example: false
        VehicleId:
          type: integer
          description: An integer primary key uniquely identifying each record in the table.
          example: 1
        FleetItemId:
          type: string
          format: uuid
          description: The unique identifier of the fleet item (vehicle). This is the
            preferred identifier moving forward and will eventually replace
            VehicleId.
          example: 81b66e37-3ceb-46a8-96ca-ce31d8d1e070
```
