Search fleet items
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
Optional free-text search. Matches name, registrationNumber, vin or notes containing the value. 3-255 characters: letters, digits, spaces, hyphens and dots only.
Body
Body
The search request containing conditions, fields, and pagination settings.
FleetItemsSearchRequest
Request body for the POST /v1/fleet-items/search endpoint. Defines filtering conditions, field projection, and pagination settings for querying fleet items.
A single filter condition within a search request. Combines a field, comparison operator, and one or more values.
<= 10 items
Example:{"field":"externalIds","operator":"CONTAINS_ANY","values":["telematics:VH-12345","fleet-mgmt:A-999"]}
Show Child Parameters
A property name to include in each result item.
Allowed values:fleetItemIdnamefleetItemTypeexternalIdsnotesvinmanufacturermanufacturerModelmanufactureYearesnfuelTypesizeregistrationNumbermetrics.fuelCapacitymetrics.highwayEfficiencymetrics.cityEfficiency
<= 100 items
Example:fleetItemId
Cursor-based pagination settings for search requests.
Example:{"limit":10,"pageToken":null}
Show Child Parameters
Response
application/json
Response
Returns the search results with matching fleet items.
FleetItemsSearchResult
Paginated search results containing fleet items matching the specified conditions.
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.
Show Child Parameters
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.
Example:01945a3b-7c8d-7e9f-a0b1-c2d3e4f5a6b7
Reserved for pagination links. Currently always an empty array; use pageToken to request the next page.
Show Child Parameters
Get a fleet item
Returns the complete details for a single fleet item (vehicle, powered asset, or non-powered asset).
Identifier Flexibility:
The fleetItemId path parameter accepts either a fleet item ID or an external identifier. Any value that is not a fleet item ID is treated as an external identifier and matched as a whole value, case-insensitive, against the fleet item’s stored external ID. External IDs set through this API use the format consumer-scope:consumer-id; older values imported from VehicleNumber or AssetNumber may have no scope and are matched as stored.
Metrics:
metrics contains fuelCapacity, cityEfficiency and highwayEfficiency when they are set (battery capacity and kWh-based efficiency for electric vehicles).
Examples:
GET /v1/fleet-items/01945a3b-7c8d-7e9f-a0b1-c2d3e4f5a6b7(fleet item ID)GET /v1/fleet-items/telematics:VH-12345(external identifier)
Path Parameters
Fleet item identifier — either a fleet item ID or an external identifier, matched as stored (usually consumer-scope:consumer-id; legacy VehicleNumber or AssetNumber values may have no scope)
Headers
>= 1<= 2147483647
Example:1133549
>= 1<= 2147483647
Example:5372525
Response
application/json
Response
Returns the fleet item details.
FleetDetailedOutput
Complete representation of a fleet item (vehicle, powered asset, or non-powered asset) returned by the GET /v1/fleet-items/{fleetItemId} endpoint.
Unique public identifier for the fleet item.
Display name or label assigned to the fleet item (e.g. vehicle call-sign or asset tag).
Current lifecycle state of the fleet item (ACTIVE or INACTIVE).
Allowed values:ACTIVEINACTIVE
Type of fleet item: VEHICLE, POWERED_ASSET, or NON_POWERED_ASSET.
Allowed values:VEHICLENON_POWERED_ASSETPOWERED_ASSET
Operational cost associated with the fleet item, in the account’s configured currency. Always null for non-powered assets.
Entity tag for optimistic concurrency control. Include this value in the If-Match header when performing PATCH updates.
An 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. Values 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.
Match pattern:^[^\n]{1,120}$
<= 1 items
Example:telematics:VH-12345
Free-text notes or comments attached to the fleet item by an administrator.
Vehicle Identification Number (VIN) — a unique 17-character code assigned by the manufacturer. Applicable to vehicles only.
Name of the vehicle or asset manufacturer (e.g. “Ford”, “Caterpillar”).
Manufacturer’s model designation (e.g. “Transit”, “320F”).
Year the vehicle or asset was manufactured.
Electronic Serial Number identifying the telematics device installed in the fleet item.
Fuel type used by the vehicle: NOT_SET, UNLEADED, DIESEL, or ELECTRIC.
Allowed values:NOT_SETUNLEADEDDIESELELECTRIC
Weight classification of the vehicle: LIGHT, MEDIUM, HEAVY, or SUPER_HEAVY.
Allowed values:LIGHTMEDIUMHEAVYSUPER_HEAVY
Government-issued registration or license plate number.
Numeric code representing the type of vehicle registration (jurisdiction-specific).
An operational metric associated with a fleet item (fuel capacity or efficiency).
Show Child Parameters
HATEOAS navigation links for related resources and actions.
Show Child Parameters
Update a fleet item
Applies atomic, partial updates to a specific fleet item using the JSON Patch specification (RFC 6902).
Identifiers:
Accepts either a fleet item ID or an external identifier. Any value that is not a fleet item ID is treated as an external identifier and matched as stored (usually consumer-scope:consumer-id; legacy values may have no scope).
Idempotency-Key:
Required. A unique client-generated key that ensures duplicate requests produce the same result. Include this header to safely retry requests without risking duplicate operations. Requests without it return 400.
If-Match:
Required containing the current ETag to enforce optimistic concurrency control.
Supported Patch Paths:
Only modifications to the following paths are permitted. Paths are case-sensitive and must match exactly as listed (e.g. /fuelType, not /fueltype); any other path returns 422.
- Core Data:
/name,/notes,/fuelType,/size - External ID:
/externalIds/-(add, only when no external ID is set) or/externalIds/0(replace), value formatconsumer-scope:consumer-id, single value. A fleet item has at most one external ID, so the index is not used; if several external ID operations are sent, only the last one is applied. The whole-array path/externalIdsis not supported. - Group Assignment:
/primaryGroup— object:{ "externalIds": ["external group ID"] }, single value - Vehicle/Asset Data:
/vin,/manufacturer,/manufacturerModel,/manufactureYear - Registration Data:
/registrationNumber,/registrationType
Operational Data (vehicles and powered assets only; non-powered assets return 400):
/engineHours: The value must be provided in minutes. Requires an accompanying/asOfoperation./odometerCurrentValue: Requires an accompanying/asOfoperation./asOf: The date and time the reading was taken, sent withaddorreplace. Must be within the last 30 days and not in the future, otherwise 400.
Supported Operations:
replace: Update the value at the specified path (all supported paths).add: Set a value at the specified path (all supported paths). For/externalIdsuse/externalIds/-.remove: Not supported. Returns 422 on any path.
Examples:
PATCH /v1/fleet-items/01945a3b-7c8d-7e9f-a0b1-c2d3e4f5a6b7(fleet item ID)PATCH /v1/fleet-items/telematics:VH-12345(external identifier)
Path Parameters
Fleet item identifier — either a fleet item ID or an external identifier, matched as stored (usually consumer-scope:consumer-id; legacy VehicleNumber or AssetNumber values may have no scope)
Headers
A unique key to ensure the request is processed at most once.
The ETag value from a previous GET, used for optimistic concurrency control.
Body
Body
The list of JSON Patch operations to apply.
JsonPatchOperations
Represents a single JSON Patch operation per RFC 6902.
The operation type. Supported: replace, add. remove is not supported and returns 422. RFC 6902 uses op as the JSON field name.
Example:replace
The target path for the operation (e.g. /name, /vin).
Example:/name
The value for the operation. Required for replace, add.
Example:Fleet Van 042-B
Response
application/json
Response
The fleet item was successfully updated.
PostFleetItemResponse
objectAllowed values:12
Allowed values:123
Allowed values:123
FleetDetailedOutput
objectComplete representation of a fleet item (vehicle, powered asset, or non-powered asset) returned by the GET /v1/fleet-items/{fleetItemId} endpoint.
Unique public identifier for the fleet item.
Display name or label assigned to the fleet item (e.g. vehicle call-sign or asset tag).
Current lifecycle state of the fleet item (ACTIVE or INACTIVE).
Allowed values:ACTIVEINACTIVE
Type of fleet item: VEHICLE, POWERED_ASSET, or NON_POWERED_ASSET.
Allowed values:VEHICLENON_POWERED_ASSETPOWERED_ASSET
Operational cost associated with the fleet item, in the account’s configured currency. Always null for non-powered assets.
Entity tag for optimistic concurrency control. Include this value in the If-Match header when performing PATCH updates.
An 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. Values 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.
Match pattern:^[^\n]{1,120}$
<= 1 items
Example:telematics:VH-12345
Free-text notes or comments attached to the fleet item by an administrator.
Vehicle Identification Number (VIN) — a unique 17-character code assigned by the manufacturer. Applicable to vehicles only.
Name of the vehicle or asset manufacturer (e.g. “Ford”, “Caterpillar”).
Manufacturer’s model designation (e.g. “Transit”, “320F”).
Year the vehicle or asset was manufactured.
Electronic Serial Number identifying the telematics device installed in the fleet item.
Fuel type used by the vehicle: NOT_SET, UNLEADED, DIESEL, or ELECTRIC.
Allowed values:NOT_SETUNLEADEDDIESELELECTRIC
Weight classification of the vehicle: LIGHT, MEDIUM, HEAVY, or SUPER_HEAVY.
Allowed values:LIGHTMEDIUMHEAVYSUPER_HEAVY
Government-issued registration or license plate number.
Numeric code representing the type of vehicle registration (jurisdiction-specific).
An operational metric associated with a fleet item (fuel capacity or efficiency).
Show Child Parameters
HATEOAS navigation links for related resources and actions.