---
title: "Search fleet items"
url: "https://developers.vzconnect.com/apis/fleet-api/versions/eedafde7-7fce-432c-90ee-2b2c651539b5/operations/searchFleetItems"
---

> Full API specification: https://developers.vzconnect.com/apis/fleet-api/versions/eedafde7-7fce-432c-90ee-2b2c651539b5.md

# Search fleet items

`POST` `/fleetapi/v1/fleet-items/search`

Operation ID: `searchFleetItems`

Queries and returns a paginated list of fleet items matching specified body conditions. **Query Controls:** Supports server-side filtering (e.g., `fleetItemType` `EQUALS`, `fleetItemId` `IN`, `externalIds` `CONTAINS_ANY`) and an optional free-text search parameter `q`. All conditions are AND-combined. `conditions` and `fields` are optional; omit `conditions` (or send an empty array) to return all fleet items. **Free-text search (`q`):** Matches fleet items whose `name`, `registrationNumber`, `vin` or `notes` contains the value. `q` must be 3-255 characters and may contain only letters, digits, spaces, hyphens and dots; any other value returns 400. **Response Field Projection (`fields`):** The `fields` array controls which properties appear in each result item — similar to a SQL SELECT clause. Only the specified fields are returned, reducing payload size. If omitted or empty, all fields are returned. Available fields: `fleetItemId`, `name`, `fleetItemType`, `externalIds`, `notes`, `vin`, `manufacturer`, `manufacturerModel`, `manufactureYear`, `esn`, `fuelType`, `size`, `registrationNumber`, `metrics.fuelCapacity`, `metrics.highwayEfficiency`, `metrics.cityEfficiency`. Any other name (for example `fleetItemState`, `cost`, `eTag`, `registrationType`, `metrics` or `links`) is rejected with 400 `Unknown field`; metrics are requested individually as `metrics.<name>`. **Fleet item state:** Search returns active and inactive fleet items; deleted fleet items are never returned. `fleetItemState` cannot be used as a condition or requested in `fields`. Use `GET /v1/fleet-items/{fleetItemId}` to read a fleet item's state. **Field/Operator Compatibility:** - `fleetItemId`: `IN` (1..N values) - `fleetItemType`: `EQUALS` (exactly 1 value), `IN` (1..N values) - `externalIds`: `CONTAINS_ANY` (1..100 values) **Operator Semantics for `externalIds`:** - `CONTAINS_ANY`: Matches fleet items whose external ID equals any of the supplied values (whole-value match, not a partial or prefix match). Supports 1 to 100 lookup values in a single query; more than 100 returns 400. **About `externalIds`:** An array containing a single external identifier used to map this Reveal entity to your consumer systems. This field combines the older `vehicleNumber` and `assetNumber` fields into a single unique identifier, offering a broader capability that handles both vehicles and assets within a unified property. External ID matching is case-insensitive (matches the underlying column collation). **Performance:** Supports field projection to return only requested properties. **Pagination & Sorting:** Implements forward-only cursor pagination via `pageToken`. Results are strictly sorted by `fleetItemId` in descending order. When more results exist, the response includes a `pageToken`; pass it back as `pagination.pageToken` in the next request body. `pageToken` is `null` on the last page. The response `links` array is currently always empty.

## Query parameters

- `q` (string, optional) - Optional free-text search. Matches `name`, `registrationNumber`, `vin` or `notes` containing the value. 3-255 characters: letters, digits, spaces, hyphens and dots only.

## Request body

Content types: `application/*+json`, `application/json`, `text/json`

## Responses

- `200` - Returns the search results with matching fleet items.
- `400` - Invalid search conditions or pagination parameters.
- `401` - Unauthorized
- `403` - Forbidden

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Fleet API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /fleetapi/v1/fleet-items/search:
    post:
      tags:
        - Fleet API
      summary: Search fleet items
      description: >-
        Queries and returns a paginated list of fleet items matching specified
        body conditions.


        **Query Controls:**

        Supports server-side filtering (e.g., `fleetItemType` `EQUALS`,
        `fleetItemId` `IN`, `externalIds` `CONTAINS_ANY`) and an optional
        free-text search parameter `q`. All conditions are AND-combined.
        `conditions` and `fields` are optional; omit `conditions` (or send an
        empty array) to return all fleet items.


        **Free-text search (`q`):**

        Matches fleet items whose `name`, `registrationNumber`, `vin` or `notes`
        contains the value. `q` must be 3-255 characters and may contain only
        letters, digits, spaces, hyphens and dots; any other value returns 400.


        **Response Field Projection (`fields`):**

        The `fields` array controls which properties appear in each result item
        — similar to a SQL SELECT clause. Only the specified fields are
        returned, reducing payload size. If omitted or empty, all fields are
        returned. Available fields: `fleetItemId`, `name`, `fleetItemType`,
        `externalIds`, `notes`, `vin`, `manufacturer`, `manufacturerModel`,
        `manufactureYear`, `esn`, `fuelType`, `size`, `registrationNumber`,
        `metrics.fuelCapacity`, `metrics.highwayEfficiency`,
        `metrics.cityEfficiency`. Any other name (for example `fleetItemState`,
        `cost`, `eTag`, `registrationType`, `metrics` or `links`) is rejected
        with 400 `Unknown field`; metrics are requested individually as
        `metrics.<name>`.


        **Fleet item state:**

        Search returns active and inactive fleet items; deleted fleet items are
        never returned. `fleetItemState` cannot be used as a condition or
        requested in `fields`. Use `GET /v1/fleet-items/{fleetItemId}` to read a
        fleet item's state.


        **Field/Operator Compatibility:**

        - `fleetItemId`: `IN` (1..N values)

        - `fleetItemType`: `EQUALS` (exactly 1 value), `IN` (1..N values)

        - `externalIds`: `CONTAINS_ANY` (1..100 values)


        **Operator Semantics for `externalIds`:**

        - `CONTAINS_ANY`: Matches fleet items whose external ID equals any of
        the supplied values (whole-value match, not a partial or prefix match).
        Supports 1 to 100 lookup values in a single query; more than 100 returns
        400.


        **About `externalIds`:**

        An array containing a single external identifier used to map this Reveal
        entity to your consumer systems. This field combines the older
        `vehicleNumber` and `assetNumber` fields into a single unique
        identifier, offering a broader capability that handles both vehicles and
        assets within a unified property.


        External ID matching is case-insensitive (matches the underlying column
        collation).


        **Performance:**

        Supports field projection to return only requested properties.


        **Pagination & Sorting:**

        Implements forward-only cursor pagination via `pageToken`. Results are
        strictly sorted by `fleetItemId` in descending order. When more results
        exist, the response includes a `pageToken`; pass it back as
        `pagination.pageToken` in the next request body. `pageToken` is `null`
        on the last page. The response `links` array is currently always empty.
      operationId: searchFleetItems
      parameters:
        - name: q
          in: query
          description: "Optional free-text search. Matches `name`, `registrationNumber`,
            `vin` or `notes` containing the value. 3-255 characters: letters,
            digits, spaces, hyphens and dots only."
          schema:
            type: string
      requestBody:
        description: The search request containing conditions, fields, and pagination
          settings.
        content:
          application/*+json:
            schema:
              $ref: "#/components/schemas/FleetItemsSearchRequest"
          application/json:
            schema:
              $ref: "#/components/schemas/FleetItemsSearchRequest"
            examples:
              Filter by fleet item type:
                summary: Find all vehicles with specific fields
                value:
                  conditions:
                    - field: fleetItemType
                      operator: EQUALS
                      values:
                        - VEHICLE
                  fields:
                    - fleetItemId
                    - name
                    - fleetItemType
                  pagination:
                    limit: 20
              Filter by multiple types:
                summary: Find vehicles and powered assets
                value:
                  conditions:
                    - field: fleetItemType
                      operator: IN
                      values:
                        - VEHICLE
                        - POWERED_ASSET
                  fields:
                    - fleetItemId
                    - name
                    - fleetItemType
                  pagination:
                    limit: 50
              Filter by external ID:
                summary: Find fleet items by external identifier
                value:
                  conditions:
                    - field: externalIds
                      operator: CONTAINS_ANY
                      values:
                        - telematics:VH-12345
                        - fleet-mgmt:A-999
                  fields:
                    - fleetItemId
                    - name
                    - externalIds
                  pagination:
                    limit: 10
          text/json:
            schema:
              $ref: "#/components/schemas/FleetItemsSearchRequest"
      responses:
        "200":
          description: Returns the search results with matching fleet items.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/FleetItemsSearchResult"
              examples:
                Vehicles by type:
                  summary: Search results filtered by fleetItemType EQUALS VEHICLE
                  value:
                    items:
                      - fleetItemId: 019c3d5e-6f7a-7b9c-8d1e-2f3a4b5c6d7e
                        name: Truck 118
                        fleetItemType: VEHICLE
                      - fleetItemId: 01945a3b-7c8d-7e9f-a0b1-c2d3e4f5a6b7
                        name: Fleet Van 042
                        fleetItemType: VEHICLE
                    pageToken: 01945a3b-7c8d-7e9f-a0b1-c2d3e4f5a6b7
                    links: []
                Nothing found:
                  summary: No fleet items match the search criteria
                  value:
                    items: []
                    pageToken: null
                    links: []
                By external ID (CONTAINS_ANY):
                  summary: Search by external identifier using CONTAINS_ANY operator
                  value:
                    items:
                      - fleetItemId: 01945a3b-7c8d-7e9f-a0b1-c2d3e4f5a6b7
                        name: Fleet Van 042
                        externalIds:
                          - telematics:VH-12345
                    pageToken: null
                    links: []
        "400":
          description: Invalid search conditions or pagination parameters.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ValidationProblemDetails"
        "401":
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UnauthorizedResult"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ForbidResult"
      deprecated: false
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/fleetapi/v1/fleet-items/search/?$
components:
  schemas:
    FleetItemsSearchRequest:
      type: object
      properties:
        conditions:
          maxItems: 10
          type: array
          items:
            $ref: "#/components/schemas/SearchCondition"
          description: List of filter conditions applied to the query. All conditions are
            AND-combined. Maximum 10 conditions per request. Optional; omit it
            or send an empty array to return all fleet items.
        fields:
          maxItems: 100
          type: array
          items:
            enum:
              - fleetItemId
              - name
              - fleetItemType
              - externalIds
              - notes
              - vin
              - manufacturer
              - manufacturerModel
              - manufactureYear
              - esn
              - fuelType
              - size
              - registrationNumber
              - metrics.fuelCapacity
              - metrics.highwayEfficiency
              - metrics.cityEfficiency
            type: string
            description: A property name to include in each result item.
            example: fleetItemId
          description: Properties to return for each item. Only the names listed in the
            enum are accepted; an empty array returns every property.
          example:
            - fleetItemId
            - name
            - externalIds
        pagination:
          $ref: "#/components/schemas/SearchPagination"
      additionalProperties: false
      description: Request body for the POST /v1/fleet-items/search endpoint. Defines
        filtering conditions, field projection, and pagination settings for
        querying fleet items.
      example:
        conditions:
          - field: externalIds
            operator: CONTAINS_ANY
            values:
              - telematics:VH-12345
              - fleet-mgmt:A-999
        fields:
          - fleetItemId
          - name
          - externalIds
        pagination:
          limit: 10
    FleetItemsSearchResult:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/FleetItem"
          description: Fleet items matching the search criteria, sorted by `fleetItemId`
            in descending order. Each item contains only the fields requested in
            the search request's `fields` array, or every property when `fields`
            is omitted or empty.
          nullable: true
        pageToken:
          type: string
          description: Token for retrieving the next page of results. Pass it as
            `pagination.pageToken` in the next request body. `null` when there
            are no more pages.
          nullable: true
          example: 01945a3b-7c8d-7e9f-a0b1-c2d3e4f5a6b7
        links:
          type: array
          items:
            $ref: "#/components/schemas/Link"
          description: Reserved for pagination links. Currently always an empty array; use
            `pageToken` to request the next page.
          nullable: true
      additionalProperties: false
      description: Paginated search results containing fleet items matching the
        specified conditions.
    ValidationProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          nullable: true
      additionalProperties:
        type: object
    UnauthorizedResult:
      type: object
      properties:
        statusCode:
          type: integer
          format: int32
      additionalProperties: false
    ForbidResult:
      type: object
      properties:
        authenticationSchemes:
          type: array
          nullable: true
          items:
            type: string
        properties:
          $ref: "#/components/schemas/AuthenticationProperties"
      additionalProperties: false
    SearchCondition:
      required:
        - field
        - operator
        - values
      type: object
      properties:
        field:
          $ref: "#/components/schemas/ConditionField"
        operator:
          $ref: "#/components/schemas/ConditionOperator"
        values:
          minItems: 1
          type: array
          items:
            type: string
            description: A filter value to match against. Format depends on the field — for
              `externalIds` use the stored external ID, matched as a whole
              value, case-insensitive (usually `consumer-scope:consumer-id`,
              e.g. `telematics:VH-12345`), for `fleetItemType` use the enum
              value (e.g. `VEHICLE`), for `fleetItemId` use the fleet item ID.
          description: The value(s) to compare against. Cardinality depends on the
            operator — `EQUALS` requires exactly 1, `IN`/`CONTAINS_ANY` accept
            1..N.
          example:
            - telematics:VH-12345
            - fleet-mgmt:A-999
      additionalProperties: false
      description: A single filter condition within a search request. Combines a
        field, comparison operator, and one or more values.
      example:
        field: externalIds
        operator: CONTAINS_ANY
        values:
          - telematics:VH-12345
          - fleet-mgmt:A-999
    SearchPagination:
      type: object
      properties:
        limit:
          maximum: 1000
          minimum: 1
          type: integer
          description: Maximum number of items returned in one page (1-1000). Use
            pageToken to get the next page. Defaults to 10.
          format: int32
          example: 10
        pageToken:
          type: string
          description: The `pageToken` value from the previous response, to retrieve the
            next page. Omit for the first page.
          nullable: true
          example: 01945a3b-7c8d-7e9f-a0b1-c2d3e4f5a6b7
      additionalProperties: false
      description: Cursor-based pagination settings for search requests.
      example:
        limit: 10
        pageToken: null
    FleetItem:
      type: object
      properties:
        fleetItemId:
          type: string
          description: Unique public identifier for the fleet item.
          nullable: true
        eTag:
          type: string
          description: Entity tag for optimistic concurrency control. Include this value
            in the If-Match header when performing PATCH updates. Only returned
            when `fields` is omitted or empty.
          nullable: true
        name:
          type: string
          description: Display name or label assigned to the fleet item (e.g. vehicle
            call-sign or asset tag).
          nullable: true
        registrationNumber:
          type: string
          description: Government-issued registration or license plate number.
          nullable: true
        fleetItemType:
          enum:
            - VEHICLE
            - NON_POWERED_ASSET
            - POWERED_ASSET
          type: string
          description: "Type of fleet item: `VEHICLE`, `POWERED_ASSET`, or
            `NON_POWERED_ASSET`."
          nullable: true
        manufacturer:
          type: string
          description: Name of the vehicle or asset manufacturer (e.g. "Ford",
            "Caterpillar").
          nullable: true
        manufacturerModel:
          type: string
          description: Manufacturer's model designation (e.g. "Transit", "320F").
          nullable: true
        manufactureYear:
          type: integer
          description: Year the vehicle or asset was manufactured.
          format: int32
          nullable: true
        vin:
          type: string
          description: Vehicle Identification Number (VIN) — a unique 17-character code
            assigned by the manufacturer. Applicable to vehicles only.
          nullable: true
        esn:
          type: string
          description: Electronic Serial Number identifying the telematics device
            installed in the fleet item.
          nullable: true
        fuelType:
          enum:
            - NOT_SET
            - UNLEADED
            - DIESEL
            - ELECTRIC
          type: string
          description: "Fuel type used by the vehicle: NOT_SET, UNLEADED, DIESEL, or
            ELECTRIC."
          nullable: true
        size:
          enum:
            - LIGHT
            - MEDIUM
            - HEAVY
            - SUPER_HEAVY
          type: string
          description: "Weight classification of the vehicle: LIGHT, MEDIUM, HEAVY, or
            SUPER_HEAVY."
          nullable: true
        notes:
          type: string
          description: Free-text notes or comments attached to the fleet item by an
            administrator.
          nullable: true
        externalIds:
          type: array
          items:
            type: string
          description: An array containing at most one external identifier used to map
            this Reveal entity to your consumer systems. External IDs set
            through this API use the format `consumer-scope:consumer-id` (e.g.
            `telematics:VH-12345`); older values imported from `vehicleNumber`
            or `assetNumber` may have no scope.
          nullable: true
        metrics:
          type: array
          items:
            $ref: "#/components/schemas/FleetItemMetric"
          description: "Fuel capacity and efficiency metrics: `fuelCapacity`,
            `cityEfficiency` and `highwayEfficiency` (battery capacity and kWh
            efficiency for electric vehicles). Metrics without a value are
            omitted."
          nullable: true
      additionalProperties: false
      description: A fleet item returned by the POST /v1/fleet-items/search endpoint.
        When the request's `fields` array is set, only the requested properties
        are present; when it is omitted or empty, every property is returned.
    Link:
      type: object
      properties:
        href:
          type: string
          format: uri
          nullable: true
        rel:
          $ref: "#/components/schemas/Rel"
        method:
          type: string
          nullable: true
      additionalProperties: false
    AuthenticationProperties:
      type: object
      properties:
        items:
          type: object
          additionalProperties:
            type: string
          nullable: true
      additionalProperties: false
    ConditionField:
      type: string
      description: "Filterable fields available for search conditions on the POST
        /v1/fleet-items/search endpoint. Fields: `fleetItemId`, `fleetItemType`
        (`VEHICLE`/`POWERED_ASSET`/`NON_POWERED_ASSET`), `externalIds` (external
        identifiers used to map Reveal entities to consumer systems — combines
        the older `vehicleNumber` and `assetNumber` into a single unified
        property)."
      enum:
        - fleetItemId
        - fleetItemType
        - externalIds
    ConditionOperator:
      type: string
      description: "The comparison operator to apply: `IN` (membership), `EQUALS`
        (exact match), or `CONTAINS_ANY` (overlap)."
      enum:
        - IN
        - EQUALS
        - CONTAINS_ANY
    FleetItemMetric:
      type: object
      properties:
        label:
          type: string
          description: "Name of the metric: `fuelCapacity`, `cityEfficiency` or
            `highwayEfficiency`. For electric vehicles these carry battery
            capacity and kWh-based efficiency."
          nullable: true
        value:
          type: string
          description: Current value of the metric, represented as a string regardless of
            underlying type.
          nullable: true
        valueType:
          $ref: "#/components/schemas/MetricValueType"
      additionalProperties: false
      description: An operational metric associated with a fleet item (fuel capacity
        or efficiency).
    Rel:
      type: string
      enum:
        - self
        - first
        - prev
        - next
        - enclosure
        - memento
        - related
    MetricValueType:
      type: string
      description: "Data type of the metric value: STRING, NUMBER, BOOLEAN, GUID, or DATE."
      enum:
        - STRING
        - NUMBER
        - BOOLEAN
        - GUID
        - DATE
```
