Vehicles
The Vehicle object
idstringoptionalPublic vehicle identifier.
internal_idstringoptionalOptional internal identifier.
photo_urlstringoptionalVehicle photo URL.
avatar_urlstringoptionalVehicle avatar URL.
namestringoptionalVehicle display name.
descriptionstringoptionalVehicle description.
driverobjectoptionalThe assigned driver, returned only when requested through with=driver. Never a string — read driver_id for the identifier.
devicesarray of objectsoptionalVehicle devices, when loaded.
makestringoptionalVehicle manufacturer.
modelstringoptionalVehicle model.
model_typestringoptionalVehicle model type.
yearintegeroptionalModel year.
trimstringoptionalVehicle trim.
typestringoptionalVehicle type.
classstringoptionalVehicle class.
colorstringoptionalVehicle color.
serial_numberstringoptionalVehicle serial number.
plate_numberstringoptionalLicense plate number.
call_signstringoptionalVehicle call sign.
fuel_card_numberstringoptionalFuel card number assigned to the vehicle.
vinstringoptionalVehicle identification number.
vin_dataobjectoptionalDecoded VIN data.
specsobjectoptionalVehicle specification data.
detailsobjectoptionalAdditional vehicle detail data.
statusenumoptionalVehicle operational status. active is accepted on input and stored as available. One of active, available, in_use, maintenance, out_of_service, reserved, retired, staging, on_route, idle, cleaning, awaiting_parts, inspection_due, inspection_failed, accident, compliance_hold, stolen, operational, decommissioned.
onlinebooleanoptionalWhether the vehicle is online.
slugstringoptionalURL-friendly vehicle slug.
financing_statusstringoptionalVehicle financing status.
measurement_systemstringoptionalMeasurement system used for vehicle metrics.
odometernumberoptionalCurrent odometer reading.
odometer_unitstringoptionalUnit for odometer readings.
fuel_typestringoptionalVehicle fuel type.
payload_capacitynumberoptionalPayload capacity.
towing_capacitynumberoptionalTowing capacity.
seating_capacityintegeroptionalSeating capacity.
weightnumberoptionalVehicle weight.
lengthnumberoptionalVehicle length.
widthnumberoptionalVehicle width.
heightnumberoptionalVehicle height.
currencycurrencyoptionalCurrency for vehicle financial fields.
acquisition_costcurrencyoptionalAcquisition cost.
current_valuecurrencyoptionalCurrent vehicle value.
purchased_attimestampoptionalPurchase timestamp.
lease_expires_attimestampoptionalLease expiration timestamp.
deleted_attimestampoptionalDeletion timestamp when soft deleted.
updated_attimestampoptionalTimestamp when the vehicle was last updated.
created_attimestampoptionalTimestamp when the vehicle was created.
locationobjectoptionalCurrent vehicle coordinates.
headingintegeroptionalCurrent heading in degrees.
altitudeintegeroptionalCurrent altitude.
speedintegeroptionalCurrent speed.
telematicsobjectoptionalTelematics payload.
notesstringoptionalVehicle notes.
metaobjectoptionalAdditional vehicle metadata.
driver_idstringoptionalPublic ID of the assigned driver, or null. Always present.
vendor_idstringoptionalPublic ID of the assigned vendor, or null. Always present.
category_idstringoptionalPublic ID of the assigned category, or null. Always present.
warranty_idstringoptionalPublic ID of the assigned warranty, or null. Always present.
photo_idstringoptionalPublic ID of the vehicle photo file, or null. Always present. photo_url beside it is a convenience URL, and avatar_url is a separate display asset that is not a file reference.
vendorobjectoptionalThe assigned vendor, returned only when requested through with=vendor. Never a string — read vendor_id for the identifier.
categoryobjectoptionalThe assigned category, returned only when requested through with=category.
warrantyobjectoptionalThe assigned warranty, returned only when requested through with=warranty.
photoobjectoptionalThe vehicle photo file, returned only when requested through with=photo.
skillsarray of stringsoptionalCapabilities the vehicle offers for orchestrator assignment.
payload_capacity_volumenumberoptionalPayload volume capacity used by orchestrator assignment.
payload_capacity_palletsintegeroptionalPallet capacity used by orchestrator assignment.
payload_capacity_parcelsintegeroptionalParcel capacity used by orchestrator assignment.
max_tasksintegeroptionalMaximum concurrent tasks for orchestrator assignment.
time_window_startstringoptionalEarliest time of day the vehicle is available.
time_window_endstringoptionalLatest time of day the vehicle is available.
return_to_depotbooleanoptionalWhether the vehicle should return to depot after assigned work.
fuel_volume_unitstringoptionalUnit for fuel volumes.
odometer_at_purchasenumberoptionalOdometer reading at the time of purchase.
transmissionstringoptionalTransmission type.
body_typestringoptionalVehicle body type.
body_sub_typestringoptionalVehicle body sub type.
usage_typestringoptionalHow the vehicle is used.
ownership_typestringoptionalHow the vehicle is held.
cargo_volumenumberoptionalCargo volume.
passenger_volumenumberoptionalPassenger volume.
interior_volumenumberoptionalTotal interior volume.
ground_clearancenumberoptionalGround clearance.
bed_lengthnumberoptionalBed length.
fuel_capacitynumberoptionalFuel tank capacity.
emission_standardstringoptionalEmission standard the vehicle meets.
dpf_equippedbooleanoptionalWhether a diesel particulate filter is fitted.
scr_equippedbooleanoptionalWhether selective catalytic reduction is fitted.
gvwrnumberoptionalGross vehicle weight rating.
gcwrnumberoptionalGross combined weight rating.
engine_numberstringoptionalEngine number.
engine_makestringoptionalEngine manufacturer.
engine_modelstringoptionalEngine model.
engine_familystringoptionalEngine family.
engine_configurationstringoptionalEngine configuration.
engine_sizenumberoptionalEngine size.
engine_displacementnumberoptionalEngine displacement.
cylinder_arrangementstringoptionalCylinder arrangement.
number_of_cylindersintegeroptionalNumber of cylinders.
horsepowernumberoptionalEngine horsepower.
horsepower_rpmintegeroptionalRPM at which peak horsepower is produced.
torquenumberoptionalEngine torque.
torque_rpmintegeroptionalRPM at which peak torque is produced.
estimated_service_life_distanceintegeroptionalEstimated service life expressed as a distance.
estimated_service_life_distance_unitstringoptionalUnit for the estimated service life distance.
estimated_service_life_monthsintegeroptionalEstimated service life expressed in months.
financing_statusstringoptionalVehicle financing status.
insurance_valuecurrencyoptionalInsured value.
depreciation_ratenumberoptionalDepreciation rate.
loan_amountnumberoptionalLoan principal.
loan_number_of_paymentsintegeroptionalNumber of loan payments.
loan_first_paymentdateoptionalDate of the first loan payment.
{
"id": "vehicle_7YqM3KpL2n",
"internal_id": "VEH-1001",
"photo_url": null,
"avatar_url": null,
"name": "ABC123",
"description": null,
"driver": null,
"make": "Toyota",
"model": "Camry",
"year": 2023,
"trim": "SE",
"type": "sedan",
"plate_number": "ABC123",
"vin": "1GCGSBEA0G1111111",
"status": "operational",
"online": false,
"payload_capacity": 500,
"fuel_card_number": "FC-1001",
"driver_id": null,
"vendor_id": "vendor_5Nq8Tz1Wm4",
"category_id": null,
"warranty_id": null,
"photo_id": null,
"skills": [
"tail_lift"
],
"max_tasks": 40,
"time_window_start": "08:00:00",
"time_window_end": "18:00:00",
"return_to_depot": true,
"location": {
"latitude": 40.7484,
"longitude": -73.9857
},
"heading": 0,
"altitude": 0,
"speed": 0,
"notes": null,
"meta": {},
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}/v1/vehiclesCreate a Vehicle
Creates a vehicle for the current organization.
Every safe business field the vehicle record holds is accepted: identity and description, odometer and measurement, body, capacity and dimensions, lifecycle and financing, regulatory and engine specifications, structured specs / details / meta, orchestrator constraints, and the vendor, driver, category and warranty relationships.
Relationships take public IDs (vendor_..., driver_..., category_..., warranty_...) and are resolved inside the authenticated organization; another organization's public ID is rejected exactly as a non-existent one is. Server-managed values — decoded vin_data, telematics, the generated slug, and every internal uuid column — are not accepted as input.
internal_idstringoptionalThe identifier the operator's own system uses for this vehicle. Queryable through ?internal_id=.
namestringoptionalVehicle display name.
descriptionstringoptionalFree-text description of the vehicle.
makestringoptionalVehicle manufacturer.
modelstringoptionalVehicle model.
model_typestringoptionalVehicle model type or variant family.
yearintegeroptionalModel year of the vehicle.
trimstringoptionalVehicle trim or variant.
colorstringoptionalVehicle colour.
typestringoptionalVehicle type.
classstringoptionalVehicle class.
plate_numberstringoptionalVehicle licence plate number. Queryable through ?plate_number=.
vinstringoptionalVehicle identification number. Updating it re-runs VIN decoding. Queryable through ?vin=.
serial_numberstringoptionalVehicle serial number.
call_signstringoptionalVehicle call sign.
fuel_card_numberstringoptionalFuel card number assigned to the vehicle.
odometernumberoptionalCurrent odometer reading. Must be zero or greater.
odometer_unitstringoptionalUnit for odometer readings, for example km or mi.
odometer_at_purchasenumberoptionalOdometer reading at the time of purchase.
measurement_systemstringoptionalMeasurement system used for the vehicle's metrics, for example metric or imperial.
fuel_typestringoptionalVehicle fuel type.
fuel_volume_unitstringoptionalUnit for fuel volumes, for example l or gal.
onlinebooleanoptionalDefault: falseWhether the vehicle is online. On create it defaults to false; on update it is left alone unless it is sent.
statusenumoptionalVehicle operational status. active is accepted and stored as available. One of active, available, in_use, maintenance, out_of_service, reserved, retired, staging, on_route, idle, cleaning, awaiting_parts, inspection_due, inspection_failed, accident, compliance_hold, stolen, operational, decommissioned.
transmissionstringoptionalTransmission type.
body_typestringoptionalVehicle body type.
body_sub_typestringoptionalVehicle body sub type.
usage_typestringoptionalHow the vehicle is used, for example commercial.
ownership_typestringoptionalHow the vehicle is held, for example owned or leased.
cargo_volumenumberoptionalCargo volume.
passenger_volumenumberoptionalPassenger volume.
interior_volumenumberoptionalTotal interior volume.
weightnumberoptionalVehicle weight.
widthnumberoptionalVehicle width.
lengthnumberoptionalVehicle length.
heightnumberoptionalVehicle height.
towing_capacitynumberoptionalTowing capacity.
payload_capacitynumberoptionalPayload capacity.
seating_capacityintegeroptionalSeating capacity.
ground_clearancenumberoptionalGround clearance.
bed_lengthnumberoptionalBed length.
fuel_capacitynumberoptionalFuel tank capacity.
financing_statusstringoptionalVehicle financing status.
loan_number_of_paymentsintegeroptionalNumber of loan payments.
loan_first_paymentdateoptionalDate of the first loan payment.
loan_amountnumberoptionalLoan principal.
estimated_service_life_distance_unitstringoptionalUnit for the estimated service life distance.
estimated_service_life_distanceintegeroptionalEstimated service life expressed as a distance.
estimated_service_life_monthsintegeroptionalEstimated service life expressed in months.
insurance_valuenumberoptionalInsured value.
depreciation_ratenumberoptionalDepreciation rate.
current_valuenumberoptionalCurrent vehicle value.
acquisition_costnumberoptionalAcquisition cost.
currencystringoptionalThree-letter currency code for the vehicle's monetary fields.
purchased_attimestampoptionalWhen the vehicle was purchased.
lease_expires_attimestampoptionalWhen the vehicle's lease expires.
emission_standardstringoptionalEmission standard the vehicle meets, for example euro6.
dpf_equippedbooleanoptionalWhether a diesel particulate filter is fitted.
scr_equippedbooleanoptionalWhether selective catalytic reduction is fitted.
gvwrnumberoptionalGross vehicle weight rating.
gcwrnumberoptionalGross combined weight rating.
engine_numberstringoptionalEngine number.
engine_modelstringoptionalEngine model.
engine_makestringoptionalEngine manufacturer.
engine_familystringoptionalEngine family.
engine_configurationstringoptionalEngine configuration.
engine_displacementnumberoptionalEngine displacement.
engine_sizenumberoptionalEngine size.
horsepowernumberoptionalEngine horsepower.
horsepower_rpmintegeroptionalRPM at which peak horsepower is produced.
torquenumberoptionalEngine torque.
torque_rpmintegeroptionalRPM at which peak torque is produced.
number_of_cylindersintegeroptionalNumber of cylinders.
cylinder_arrangementstringoptionalCylinder arrangement, for example I4 or V6.
specsobjectoptionalStructured vehicle specification data.
detailsobjectoptionalStructured additional vehicle detail data.
notesstringoptionalFree-text notes about the vehicle.
metaobjectoptionalAdditional vehicle metadata.
skillsarray of stringsoptionalCapabilities the vehicle offers for orchestrator assignment, for example tail_lift.
payload_capacity_volumenumberoptionalPayload volume capacity used by orchestrator assignment.
payload_capacity_palletsintegeroptionalPallet capacity used by orchestrator assignment.
payload_capacity_parcelsintegeroptionalParcel capacity used by orchestrator assignment.
max_tasksintegeroptionalMaximum concurrent tasks for orchestrator assignment.
time_window_startstringoptionalEarliest time of day the vehicle is available, as HH:MM.
time_window_endstringoptionalLatest time of day the vehicle is available, as HH:MM.
return_to_depotbooleanoptionalWhether the vehicle should return to depot after assigned work.
vendorstringoptionalVendor public ID (vendor_...). Send null to clear. Must belong to the authenticated organization.
driverstringoptionalDriver public ID (driver_...) to assign this vehicle to. Send an empty value to unassign the current driver. Must belong to the authenticated organization.
categorystringoptionalCategory public ID (category_...). Send null to clear.
warrantystringoptionalWarranty public ID (warranty_...). Send null to clear.
photostringoptionalFile public ID (file_...) to use as the vehicle photo.
locationobjectoptionalResolvable point used as the vehicle's current location.
latitudenumberoptionalDecimal latitude. Required with longitude.
longitudenumberoptionalDecimal longitude. Required with latitude.
altitudenumberoptionalCurrent altitude.
headingnumberoptionalCurrent heading in degrees.
speednumberoptionalCurrent speed.
/v1/vehiclescurl -X POST https://api.fleetbase.io/v1/vehicles \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"internal_id": "VEH-1001",
"name": "Depot Van",
"description": "City route van",
"vin": "1GCGSBEA0G1111111",
"year": 2023,
"make": "Toyota",
"model": "Camry",
"trim": "SE",
"color": "White",
"type": "sedan",
"class": "N1",
"plate_number": "ABC123",
"serial_number": "SER-1001",
"call_sign": "DEPOT-1",
"fuel_card_number": "FC-1001",
"status": "maintenance",
"online": false,
"odometer": 41000,
"odometer_unit": "km",
"odometer_at_purchase": 12,
"measurement_system": "metric",
"fuel_type": "diesel",
"fuel_volume_unit": "l",
"transmission": "automatic",
"body_type": "sedan",
"seating_capacity": 5,
"weight": 1620.5,
"payload_capacity": 1400,
"fuel_capacity": 60,
"currency": "SGD",
"purchased_at": "2026-01-02",
"loan_first_payment": "2026-02-15",
"loan_amount": 32000,
"insurance_value": 41000,
"depreciation_rate": 12.5,
"current_value": 38000,
"acquisition_cost": 52000,
"engine_number": "ENG-1001",
"number_of_cylinders": 4,
"latitude": 40.7484,
"longitude": -73.9857,
"specs": { "doors": 4 },
"details": { "liftgate": true },
"notes": "City route pool",
"meta": { "depot": "north" },
"skills": ["tail_lift"],
"max_tasks": 40,
"time_window_start": "08:00",
"time_window_end": "18:00",
"return_to_depot": true,
"vendor": "{{vendor_id}}"
}'{
"id": "vehicle_7YqM3KpL2n",
"internal_id": "VEH-1001",
"name": "Depot Van",
"vin": "1GCGSBEA0G1111111",
"photo_url": "https://s3.ap-southeast-1.amazonaws.com/flb-assets/static/vehicle-placeholder.png",
"make": "Toyota",
"model": "Camry",
"year": "2023",
"trim": "SE",
"type": "sedan",
"plate_number": "ABC123",
"status": "maintenance",
"online": false,
"odometer": 41000,
"odometer_unit": "km",
"skills": [
"tail_lift"
],
"max_tasks": null,
"time_window_start": null,
"time_window_end": null,
"return_to_depot": true,
"driver_id": null,
"vendor_id": "vendor_5Nq8Tz1Wm4",
"category_id": null,
"warranty_id": null,
"photo_id": null,
"meta": {
"depot": "north"
},
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}/v1/vehiclesQuery Vehicles
This endpoint allows you to query vehicles you have created, it also provides paginated results on all the vehicles in your Fleetbase.
querystringoptionalFree-text search across the vehicle's searchable fields.
internal_idstringoptionalFilter by the identifier the operator's own system uses. Exact match on the public API: VEH-10 returns only VEH-10, never VEH-100. That is what lets an importer use it to decide between update and create. (The Fleet-Ops console does a partial search on the same field; that behaviour is internal to the console and not part of this contract.)
plate_numberstringoptionalFilter by licence plate number.
vinstringoptionalFilter by vehicle identification number.
public_idstringoptionalFilter by vehicle public ID (vehicle_...). Exact match.
display_namestringoptionalFilter across year, make, model and plate number together.
vehicle_makestringoptionalFilter by manufacturer.
vehicle_modelstringoptionalFilter by model.
vehicle_yearstringoptionalFilter by model year.
vendorstringoptionalFilter by vendor, given as its public ID (vendor_...) or internal ID.
driverstringoptionalFilter by assigned driver, given as its public ID (driver_...) or internal ID. Pass unassigned to return vehicles with no driver.
fleetstringoptionalFilter to the vehicles in a fleet, given as its public ID (fleet_...).
assigned_fleetstringoptionalPass false to return vehicles that belong to no fleet.
limitintegeroptionalMaximum number of vehicles to return.
offsetintegeroptionalNumber of vehicles to skip before returning results.
sortstringoptionalSort expression for the vehicle query.
witharray of stringsoptionalRelationships to expand. Accepted as ?with=vendor, ?with[]=vendor, ?with[]=vendor&with[]=driver and ?with=vendor,driver; expand is an alias for all four. A relationship named here is additionally returned as a nested object — it never replaces or retypes the <name>_id identifier, which is always present. A name outside the supported set is ignored rather than rejected.
/v1/vehiclescurl https://api.fleetbase.io/v1/vehicles?query={{vehicle_name}}&limit=25&offset=0&sort=created_at \
-H "Authorization: Bearer flb_live_…" \
-H "Accept: application/json"[
{
"id": "vehicle_7YqM3KpL2n",
"internal_id": "VEH-1001",
"name": "Depot Van",
"vin": "1GCGSBEA0G1111111",
"photo_url": "https://s3.ap-southeast-1.amazonaws.com/flb-assets/static/vehicle-placeholder.png",
"avatar_url": "https://flb-assets.s3-ap-southeast-1.amazonaws.com/static/vehicle-icons/mini_bus.svg",
"make": "Toyota",
"model": "Camry",
"year": "2023",
"trim": "SE",
"type": "sedan",
"plate_number": "ABC123",
"fuel_card_number": "FC-1001",
"status": "available",
"online": false,
"odometer": 41000,
"odometer_unit": "km",
"currency": "SGD",
"purchased_at": "2026-01-02T00:00:00.000000Z",
"location": {
"type": "Point",
"coordinates": [
-73.9857,
40.7484
]
},
"driver_id": null,
"vendor_id": "vendor_5Nq8Tz1Wm4",
"category_id": null,
"warranty_id": null,
"photo_id": null,
"specs": {
"doors": 4
},
"details": {
"liftgate": true
},
"notes": "City route pool",
"meta": {
"depot": "north"
},
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}
]/v1/vehicles/:idRetrieve a Vehicle
Retrieve details for a specific Vehicle.
/v1/vehicles/:idcurl https://api.fleetbase.io/v1/vehicles/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Accept: application/json"{
"id": "vehicle_7YqM3KpL2n",
"internal_id": "VEH-1001",
"name": "Depot Van",
"vin": "1GCGSBEA0G1111111",
"photo_url": "https://s3.ap-southeast-1.amazonaws.com/flb-assets/static/vehicle-placeholder.png",
"avatar_url": "https://flb-assets.s3-ap-southeast-1.amazonaws.com/static/vehicle-icons/mini_bus.svg",
"make": "Toyota",
"model": "Camry",
"year": "2023",
"trim": "SE",
"type": "sedan",
"plate_number": "ABC123",
"fuel_card_number": "FC-1001",
"status": "available",
"online": false,
"odometer": 41000,
"odometer_unit": "km",
"currency": "SGD",
"purchased_at": "2026-01-02T00:00:00.000000Z",
"location": {
"type": "Point",
"coordinates": [
-73.9857,
40.7484
]
},
"driver_id": null,
"vendor_id": "vendor_5Nq8Tz1Wm4",
"category_id": null,
"warranty_id": null,
"photo_id": null,
"specs": {
"doors": 4
},
"details": {
"liftgate": true
},
"notes": "City route pool",
"meta": {
"depot": "north"
},
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}/v1/vehicles/:id?with[]=vendor&with[]=not_a_relationExpand a Vehicle
Retrieves a vehicle with its vendor expanded, using the array form of the expansion parameter.
Both ?with=vendor and ?with[]=vendor are accepted, as are ?with=vendor,driver and the expand alias. Expansion is strictly additive: it adds the nested object and leaves vendor_id exactly as it was. A relationship name outside the supported set is ignored rather than rejected, so a client sending a relation this version does not have still gets its response.
/v1/vehicles/:id?with[]=vendor&with[]=not_a_relationcurl https://api.fleetbase.io/v1/vehicles/:id?with[]=vendor&with[]=not_a_relation \
-H "Authorization: Bearer flb_live_…" \
-H "Accept: application/json"{
"id": "vehicle_7YqM3KpL2n",
"internal_id": "VEH-1001",
"name": "Depot Van",
"vin": "1GCGSBEA0G1111111",
"photo_url": "https://s3.ap-southeast-1.amazonaws.com/flb-assets/static/vehicle-placeholder.png",
"avatar_url": "https://flb-assets.s3-ap-southeast-1.amazonaws.com/static/vehicle-icons/mini_bus.svg",
"make": "Toyota",
"model": "Camry",
"year": "2023",
"trim": "SE",
"type": "sedan",
"plate_number": "ABC123",
"fuel_card_number": "FC-1001",
"status": "available",
"online": false,
"odometer": 41000,
"odometer_unit": "km",
"currency": "SGD",
"purchased_at": "2026-01-02T00:00:00.000000Z",
"location": {
"type": "Point",
"coordinates": [
-73.9857,
40.7484
]
},
"driver_id": null,
"vendor_id": "vendor_5Nq8Tz1Wm4",
"vendor": {
"id": "vendor_5Nq8Tz1Wm4",
"name": "Acme Logistics"
},
"category_id": null,
"warranty_id": null,
"photo_id": null,
"specs": {
"doors": 4
},
"details": {
"liftgate": true
},
"notes": "City route pool",
"meta": {
"depot": "north"
},
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}/v1/vehicles/:id?with=vendorExpand a Vehicle Scalar
The same expansion as Expand a Vehicle, sent in the scalar comma-separated form.
?with=vendor,driver must behave exactly as ?with[]=vendor&with[]=driver does. This request exists so the two spellings are proven equivalent rather than assumed to be.
/v1/vehicles/:id?with=vendorcurl https://api.fleetbase.io/v1/vehicles/:id?with=vendor?with=vendor \
-H "Authorization: Bearer flb_live_…" \
-H "Accept: application/json"/v1/vehicles/:idUpdate a Vehicle
Updates any safe vehicle field. Updating the VIN re-runs VIN decoding.
A partial update touches only the fields that are sent: omitting online leaves the vehicle's online state alone rather than taking it offline. Relationship inputs take public IDs and are resolved inside the authenticated organization; sending null clears the assignment, and sending an empty driver unassigns the current driver.
internal_idstringoptionalThe identifier the operator's own system uses for this vehicle. Queryable through ?internal_id=.
namestringoptionalVehicle display name.
descriptionstringoptionalFree-text description of the vehicle.
makestringoptionalVehicle manufacturer.
modelstringoptionalVehicle model.
model_typestringoptionalVehicle model type or variant family.
yearintegeroptionalModel year of the vehicle.
trimstringoptionalVehicle trim or variant.
colorstringoptionalVehicle colour.
typestringoptionalVehicle type.
classstringoptionalVehicle class.
plate_numberstringoptionalVehicle licence plate number. Queryable through ?plate_number=.
vinstringoptionalVehicle identification number. Updating it re-runs VIN decoding. Queryable through ?vin=.
serial_numberstringoptionalVehicle serial number.
call_signstringoptionalVehicle call sign.
fuel_card_numberstringoptionalFuel card number assigned to the vehicle.
odometernumberoptionalCurrent odometer reading. Must be zero or greater.
odometer_unitstringoptionalUnit for odometer readings, for example km or mi.
odometer_at_purchasenumberoptionalOdometer reading at the time of purchase.
measurement_systemstringoptionalMeasurement system used for the vehicle's metrics, for example metric or imperial.
fuel_typestringoptionalVehicle fuel type.
fuel_volume_unitstringoptionalUnit for fuel volumes, for example l or gal.
onlinebooleanoptionalDefault: falseWhether the vehicle is online. On create it defaults to false; on update it is left alone unless it is sent.
statusenumoptionalVehicle operational status. active is accepted and stored as available. One of active, available, in_use, maintenance, out_of_service, reserved, retired, staging, on_route, idle, cleaning, awaiting_parts, inspection_due, inspection_failed, accident, compliance_hold, stolen, operational, decommissioned.
transmissionstringoptionalTransmission type.
body_typestringoptionalVehicle body type.
body_sub_typestringoptionalVehicle body sub type.
usage_typestringoptionalHow the vehicle is used, for example commercial.
ownership_typestringoptionalHow the vehicle is held, for example owned or leased.
cargo_volumenumberoptionalCargo volume.
passenger_volumenumberoptionalPassenger volume.
interior_volumenumberoptionalTotal interior volume.
weightnumberoptionalVehicle weight.
widthnumberoptionalVehicle width.
lengthnumberoptionalVehicle length.
heightnumberoptionalVehicle height.
towing_capacitynumberoptionalTowing capacity.
payload_capacitynumberoptionalPayload capacity.
seating_capacityintegeroptionalSeating capacity.
ground_clearancenumberoptionalGround clearance.
bed_lengthnumberoptionalBed length.
fuel_capacitynumberoptionalFuel tank capacity.
financing_statusstringoptionalVehicle financing status.
loan_number_of_paymentsintegeroptionalNumber of loan payments.
loan_first_paymentdateoptionalDate of the first loan payment.
loan_amountnumberoptionalLoan principal.
estimated_service_life_distance_unitstringoptionalUnit for the estimated service life distance.
estimated_service_life_distanceintegeroptionalEstimated service life expressed as a distance.
estimated_service_life_monthsintegeroptionalEstimated service life expressed in months.
insurance_valuenumberoptionalInsured value.
depreciation_ratenumberoptionalDepreciation rate.
current_valuenumberoptionalCurrent vehicle value.
acquisition_costnumberoptionalAcquisition cost.
currencystringoptionalThree-letter currency code for the vehicle's monetary fields.
purchased_attimestampoptionalWhen the vehicle was purchased.
lease_expires_attimestampoptionalWhen the vehicle's lease expires.
emission_standardstringoptionalEmission standard the vehicle meets, for example euro6.
dpf_equippedbooleanoptionalWhether a diesel particulate filter is fitted.
scr_equippedbooleanoptionalWhether selective catalytic reduction is fitted.
gvwrnumberoptionalGross vehicle weight rating.
gcwrnumberoptionalGross combined weight rating.
engine_numberstringoptionalEngine number.
engine_modelstringoptionalEngine model.
engine_makestringoptionalEngine manufacturer.
engine_familystringoptionalEngine family.
engine_configurationstringoptionalEngine configuration.
engine_displacementnumberoptionalEngine displacement.
engine_sizenumberoptionalEngine size.
horsepowernumberoptionalEngine horsepower.
horsepower_rpmintegeroptionalRPM at which peak horsepower is produced.
torquenumberoptionalEngine torque.
torque_rpmintegeroptionalRPM at which peak torque is produced.
number_of_cylindersintegeroptionalNumber of cylinders.
cylinder_arrangementstringoptionalCylinder arrangement, for example I4 or V6.
specsobjectoptionalStructured vehicle specification data.
detailsobjectoptionalStructured additional vehicle detail data.
notesstringoptionalFree-text notes about the vehicle.
metaobjectoptionalAdditional vehicle metadata.
skillsarray of stringsoptionalCapabilities the vehicle offers for orchestrator assignment, for example tail_lift.
payload_capacity_volumenumberoptionalPayload volume capacity used by orchestrator assignment.
payload_capacity_palletsintegeroptionalPallet capacity used by orchestrator assignment.
payload_capacity_parcelsintegeroptionalParcel capacity used by orchestrator assignment.
max_tasksintegeroptionalMaximum concurrent tasks for orchestrator assignment.
time_window_startstringoptionalEarliest time of day the vehicle is available, as HH:MM.
time_window_endstringoptionalLatest time of day the vehicle is available, as HH:MM.
return_to_depotbooleanoptionalWhether the vehicle should return to depot after assigned work.
vendorstringoptionalVendor public ID (vendor_...). Send null to clear. Must belong to the authenticated organization.
driverstringoptionalDriver public ID (driver_...) to assign this vehicle to. Send an empty value to unassign the current driver. Must belong to the authenticated organization.
categorystringoptionalCategory public ID (category_...). Send null to clear.
warrantystringoptionalWarranty public ID (warranty_...). Send null to clear.
photostringoptionalFile public ID (file_...) to use as the vehicle photo.
locationobjectoptionalResolvable point used as the vehicle's current location.
latitudenumberoptionalDecimal latitude. Required with longitude.
longitudenumberoptionalDecimal longitude. Required with latitude.
altitudenumberoptionalCurrent altitude.
headingnumberoptionalCurrent heading in degrees.
speednumberoptionalCurrent speed.
/v1/vehicles/:idcurl -X PUT https://api.fleetbase.io/v1/vehicles/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"plate_number": "ABC123",
"status": "operational",
"odometer": 41250,
"color": "Silver",
"body_type": "sedan",
"transmission": "automatic",
"seating_capacity": 5,
"currency": "SGD",
"purchased_at": "2026-01-02",
"specs": { "doors": 4 },
"details": { "liftgate": true },
"meta": { "depot": "south" },
"latitude": 40.7484,
"longitude": -73.9857,
"speed": 90
}'{
"id": "vehicle_7YqM3KpL2n",
"internal_id": "VEH-1001",
"name": "Depot Van",
"make": "Toyota",
"model": "Camry",
"year": "2023",
"plate_number": "ABC123",
"color": "Silver",
"status": "operational",
"online": false,
"odometer": 41250,
"odometer_unit": "km",
"specs": {
"doors": 4
},
"meta": {
"depot": "south"
},
"vendor_id": "vendor_5Nq8Tz1Wm4",
"updated_at": "2026-05-07T09:12:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}/v1/vehicles/:idDelete a Vehicle
Permanently deletes a Vehicle. It cannot be undone.
/v1/vehicles/:idcurl -X DELETE https://api.fleetbase.io/v1/vehicles/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Accept: application/json"{
"deleted": "<boolean>",
"id": "<string>"
}/v1/vehicles/:id/trackTrack Vehicle
latitudenumberoptionalVehicle latitude. When omitted with longitude, Fleetbase returns the current vehicle resource without updating location.
longitudenumberoptionalVehicle longitude. When omitted with latitude, Fleetbase returns the current vehicle resource without updating location.
altitudenumberoptionalCurrent altitude.
headingnumberoptionalCurrent heading in degrees.
speednumberoptionalCurrent speed.
/v1/vehicles/:id/trackcurl -X PATCH https://api.fleetbase.io/v1/vehicles/:id/track \
-H "Authorization: Bearer flb_live_…"