linxio-js
API Reference

Vehicles and Routes

Vehicle inventory, lifecycle, odometer, engine-hours, counts, types, and route history endpoints.

Vehicle list endpoints support field projection through repeated fields[] query parameters. Route endpoints can produce large responses when coordinates are requested.

GET /vehicles/fields/json

GET

List vehicles

/vehicles/fields/jsonlinxio.vehicles.list(params)

Returns a paginated list of vehicles.

Request headers

Bearer token
required
JWT bearer token returned by login or token refresh.

Request query parameters

number
optional
Number of records per page.
number
optional
Page number to read.
Default: 1
VehicleField[]
optional
Vehicle fields to include in the response projection.
Possible enum values
id

Vehicle identifier.

regNo

Registration number or fleet code.

defaultLabel

Default display label.

model

Vehicle model text.

depot

Depot object.

groups

Vehicle group objects.

driver

Assigned driver object.

type

Vehicle type key.

typeId

Vehicle type identifier.

typeName

Vehicle type display name.

make

Vehicle make.

makeModel

Vehicle make/model label.

vin

Vehicle identification number.

deviceId

Installed device identifier.

status

Vehicle status.

lastLoggedAt

Last telemetry timestamp.

lastCoordinates

Last known vehicle coordinates.

todayData

Current-day telemetry summary.

string
optional
Sort expression accepted by Linxio.

Response body fields

optional
Vehicle rows for the current page.
Show child parameters
LinxioId
required
Vehicle identifier.
LinxioId | null
optional
Owning team identifier.
LinxioRecord | null
optional
Owning team object.
LinxioRecord | null
optional
Depot object, typically including id, name, status, createdAt, and color.
string | null
optional
Vehicle type key.
LinxioId | null
optional
Vehicle type identifier.
string | null
optional
Vehicle type display name.
string | null
optional
Vehicle manufacturer.
string | null
optional
Manufacturer model label returned by Linxio.
string | null
optional
Vehicle model text.
string | null
optional
Registration number or fleet identifier.
string | null
optional
Default display label.
string | null
optional
Vehicle identification number.
ISODateString | null
optional
Vehicle registration date when supplied.
string | null
optional
Registration certificate number when supplied.
number | null
optional
Vehicle model year when supplied.
number | null
optional
Engine power rating when supplied.
number | null
optional
Engine capacity when supplied.
number | null
optional
Accumulated engine-on time.
LinxioId | null
optional
Fuel type identifier.
number | null
optional
Fuel tank capacity.
number | null
optional
Average fuel value returned by Linxio.
string | null
optional
Emission class when supplied.
number | null
optional
CO2 emissions value when supplied.
number | null
optional
Gross vehicle weight when supplied.
LinxioRecord[]
optional
Vehicle group objects with id, name, and color.
LinxioRecord[]
optional
Current area assignments with arrival/departure timestamps.
string | null
optional
Vehicle status, such as online or offline.
LinxioRecord | null
optional
Assigned driver object. Optional extras such as driverSensorId and driverFOBId appear only when configured.
LatLng & { ts?: ISODateString } | null
optional
Last known vehicle coordinates.
Show/hide 12 more
ISODateString | null
optional
Last telemetry timestamp.
LinxioId | null
optional
Installed device identifier.
{ avgSpeed?: number; distance?: number; duration?: number; idleDuration?: number } | null
optional
Current-day telemetry summary when selected.
number | null
optional
Tenant-configured economical speed threshold when supplied.
number | null
optional
Tenant-configured excessive idling threshold when supplied.
number | null
optional
Average daily mileage value returned by Linxio.
ISODateString | null
optional
Vehicle creation timestamp.
LinxioRecord | null
optional
User object for the creator when supplied.
ISODateString | null
optional
Vehicle update timestamp.
LinxioRecord | null
optional
User object for the last updater when supplied.
string | null
optional
Vehicle picture URL when supplied.
string | null
optional
Unavailable reason when supplied.
number
optional
Current page number.
number
optional
Page size.
number
optional
Total matching vehicle count.
unknown
optional
Aggregation payload when supplied.

GET /vehicles/{vehicleId}

GET

Get a vehicle

/vehicles/{vehicleId}linxio.vehicles.get(vehicleId)

Returns one vehicle by ID.

Request headers

Bearer token
required
JWT bearer token returned by login or token refresh.

Request url parameters

LinxioId
required
Vehicle identifier.

Response body fields

LinxioId
optional
Vehicle identifier.
string
optional
Registration number when supplied.
string
optional
Display label when supplied.
ISODateString
optional
Last telemetry timestamp when supplied.

POST /vehicles

POST

Create a vehicle

/vehicleslinxio.vehicles.create(payload)

Creates a vehicle record.

Request headers

Bearer token
required
JWT bearer token returned by login or token refresh.
application/json
required
Required when sending a JSON request body.

Request body parameters

string
optional
Registration number or fleet identifier.
string
optional
Default display label.
string
optional
Vehicle model.
LinxioId
optional
Vehicle type identifier.
LinxioId | null
optional
Depot identifier.
LinxioId[]
optional
Vehicle group identifiers.
string
optional
Vehicle identification number.

Response body fields

LinxioId
optional
Created vehicle ID.
string
optional
Created vehicle registration number when supplied.

POST /vehicles/{vehicleId}

POST

Update a vehicle

/vehicles/{vehicleId}linxio.vehicles.update(vehicleId, payload)

Updates an existing vehicle.

Request headers

Bearer token
required
JWT bearer token returned by login or token refresh.
application/json
required
Required when sending a JSON request body.

Path and body parameters

LinxioId
required
Vehicle identifier.
Fields to update.
Show child parameters
string
optional
Default display label.
LinxioId | null
optional
Depot identifier when the tenant uses depots.
LinxioId[]
optional
Vehicle group identifiers.
string
optional
Vehicle model text.
string
optional
Registration number or fleet identifier.
LinxioId
optional
Vehicle type identifier.
string
optional
Vehicle identification number.

Response body fields

LinxioId
optional
Updated vehicle ID.
string
optional
Registration number when supplied.

PATCH /vehicles/{vehicleId}/archive

PATCH

Archive a vehicle

/vehicles/{vehicleId}/archivelinxio.vehicles.archive(vehicleId)

Soft-archives a vehicle.

Request headers

Bearer token
required
JWT bearer token returned by login or token refresh.
application/json
required
Required when sending a JSON request body.

Request url parameters

LinxioId
required
Vehicle identifier.

Response headers

204 or JSON
optional
Successful archive response.

POST /vehicles/{vehicleId}/restore

POST

Restore a vehicle

/vehicles/{vehicleId}/restorelinxio.vehicles.restore(vehicleId)

Restores a previously archived vehicle.

Request headers

Bearer token
required
JWT bearer token returned by login or token refresh.
application/json
required
Required when sending a JSON request body.

Request url parameters

LinxioId
required
Archived vehicle identifier.

Response headers

204 or JSON
optional
Successful restore response.

GET /vehicles/{vehicleId}/odometer

GET

Get vehicle odometer

/vehicles/{vehicleId}/odometerlinxio.vehicles.getOdometer(vehicleId, params)

Returns a vehicle odometer reading.

Request headers

Bearer token
required
JWT bearer token returned by login or token refresh.

Path and query parameters

LinxioId
required
Vehicle identifier.
ISODateString
optional
Optional occurrence timestamp.

Response body fields

number
optional
Odometer reading.
LinxioId
optional
Vehicle identifier.
ISODateString
optional
Reading timestamp when supplied.

POST /vehicles/{vehicleId}/odometer

POST

Recalibrate vehicle odometer

/vehicles/{vehicleId}/odometerlinxio.vehicles.recalibrateOdometer(vehicleId, payload)

Recalibrates a vehicle odometer.

Request headers

Bearer token
required
JWT bearer token returned by login or token refresh.
application/json
required
Required when sending a JSON request body.

Path and body parameters

LinxioId
required
Vehicle identifier.
ISODateString
required
When the recalibrated reading applies.
number
required
New odometer value.

Response body fields

number
optional
Updated odometer value.
LinxioId
optional
Vehicle identifier.

GET /vehicles/{vehicleId}/engine-hours/current

GET

Get vehicle engine hours

/vehicles/{vehicleId}/engine-hours/currentlinxio.vehicles.getEngineHours(vehicleId)

Returns the current engine-hours reading for a vehicle.

Request headers

Bearer token
required
JWT bearer token returned by login or token refresh.

Request url parameters

LinxioId
required
Vehicle identifier.

Response body fields

number
optional
Current engine-hours reading.
ISODateString
optional
Reading timestamp when supplied.
LinxioId
optional
Vehicle identifier.

GET /vehicles/count

GET

Count vehicles

/vehicles/countlinxio.vehicles.count(params)

Returns a vehicle count without fetching records.

Request headers

Bearer token
required
JWT bearer token returned by login or token refresh.

Request query parameters

QueryValue
optional
Optional dashboard-derived filters.

Response body fields

number
optional
Vehicle count when returned by Linxio.
number
optional
Vehicle count when returned as total.

GET /vehicles/types

GET

List vehicle types

/vehicles/typeslinxio.vehicles.types(params)

Lists vehicle type categories.

Request headers

Bearer token
required
JWT bearer token returned by login or token refresh.

Request query parameters

number
optional
Maximum type records.
Default: 1000
string
optional
Sort expression.
Default: order

Response body fields

optional
Vehicle type rows for the current page.
Show child parameters
string | null
optional
Default color for this vehicle type.
string | null
optional
Driving-state color for this vehicle type.
LinxioId
required
Vehicle type identifier.
string | null
optional
Idling-state color for this vehicle type.
string
optional
Vehicle type display name.
number
optional
Sort order when supplied.
string | null
optional
Vehicle type status.
string | null
optional
Stopped-state color for this vehicle type.
LinxioId
optional
Vehicle type identifier.
string
optional
Vehicle type display name.
string | null
optional
Dashboard color values for type states.
string | null
optional
Vehicle type status.
number
optional
Sort order when supplied.
number
optional
Current page number.
number
optional
Page size.
number
optional
Total matching type count.

GET /vehicles/{vehicleId}/routes

GET

Get vehicle route history

/vehicles/{vehicleId}/routeslinxio.routes.getVehicleRoutes(vehicleId, params)

Returns trip and stop history for one vehicle over a date range.

Request headers

Bearer token
required
JWT bearer token returned by login or token refresh.

Path and query parameters

LinxioId
required
Vehicle identifier.
ISODateString
optional
Start date/time.
ISODateString
optional
End date/time.
RouteField[]
optional
Route fields to include in the response projection.
Possible enum values
coordinates

Route coordinate points. This can produce large responses.

driver

Driver summary for each route.

vehicle

Vehicle summary for each route.

address

Resolved start/finish addresses.

number
optional
Page size when supported.
number
optional
Page number when supported.

Response body fields

LinxioId
optional
Vehicle identifier for a route group.
LinxioId | null
optional
Driver identifier when supplied.
optional
Route segments including start/finish points, distance, duration, and optional coordinates.
Show child parameters
string | null
optional
Resolved address for the segment.
number | null
optional
Average speed.
string | null
optional
Route comment when supplied.
optional
Route coordinate points. This field can be large.
LinxioId | null
optional
Device identifier.
number | string | null
optional
Route distance.
LinxioId | null
optional
Driver identifier.
number | null
optional
Route duration.
LinxioId
required
Route segment identifier.
number | null
optional
Maximum speed.
optional
Finish point for the segment.
optional
Start point for the segment.
unknown
optional
Route scope payload when supplied by Linxio.
driving | idle | stopped | string
optional
Route segment type.
LinxioId
required
Vehicle identifier.

On this page