linxio-js
SDK Reference

Routes, Sensors, and Cameras

Vehicle route history, temperature/humidity reports, sensor inventory, and camera event helpers.

routes.getVehicleRoutes()

GET

Get vehicle route history

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

Fetches route history for one vehicle. Request coordinates only when you need every recorded point.

Important

Vehicle route history can return large payloads. Use date ranges and field projection deliberately. If your tenant has many vehicles and/or vehicles with long route histories, avoid using routes.getVehicleRoutes() in production implementations.

Input

LinxioId
required
Vehicle identifier.
object
optional
Object parameter. Expand to see child parameters.
Show child parameters
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
Limit accepted by the route endpoint.
number
optional
Page accepted by the route endpoint.

Returns

optional
Route groups by vehicle/driver, each with route segments.
Show child fields
LinxioId | null
optional
Driver identifier.
required
Route segments for the group.
LinxioId
required
Vehicle identifier.
optional
Typed SDK error when routes cannot be loaded.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

sensors.list()

GET

List sensors

/sensorslinxio.sensors.list(params)

Lists sensors visible to the authenticated account.

Input

object
optional
Object parameter. Expand to see child parameters.
Show child parameters
number
optional
Number of sensors to request.
number
optional
Page number to request.
Default: 1
SensorField[]
optional
Sensor fields to include in the response projection.
Possible enum values
id

Sensor identifier.

label

Sensor display label.

sensorId

Hardware sensor identifier.

systemStatus

Sensor system status.

team

Owning team summary.

type

Sensor type.

Returns

LinxioSensor[] | null
optional
Sensor records for the requested page.
Show child fields
ISODateString | null
optional
Sensor creation timestamp.
LinxioId | null
optional
Device identifier.
LinxioId
required
Sensor identifier.
string | null
optional
Sensor display label.
string | null
optional
Hardware sensor identifier.
string | null
optional
Sensor system status.
LinxioRecord | null
optional
Owning team summary.
string | null
optional
Sensor type.
ISODateString | null
optional
Last update timestamp.
LinxioId | null
optional
Vehicle identifier.
optional
Pagination metadata.
Show child fields
number
required
Page size.
number
required
Current page number.
number
required
Total matching record count.
optional
Typed SDK error when sensors cannot be loaded.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

sensors.get()

GET

Get a sensor

/sensors/{sensorId}linxio.sensors.get(sensorId)

Fetches one sensor by ID.

Input

LinxioId
required
Sensor identifier.

Returns

optional
Sensor record.
Show child fields
ISODateString | null
optional
Sensor creation timestamp.
LinxioId | null
optional
Device identifier.
LinxioId
required
Sensor identifier.
string | null
optional
Sensor display label.
string | null
optional
Hardware sensor identifier.
string | null
optional
Sensor system status.
LinxioRecord | null
optional
Owning team summary.
string | null
optional
Sensor type.
ISODateString | null
optional
Last update timestamp.
LinxioId | null
optional
Vehicle identifier.
optional
Typed SDK error when the sensor cannot be loaded.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

sensors.install()

POST

Install a sensor

/sensors/{sensorId}/installlinxio.sensors.install(sensorId, deviceId)

Pairs or installs a sensor with a device.

Input

LinxioId
required
Sensor identifier.
LinxioId
required
Device identifier.

Returns

optional
Updated sensor record.
Show child fields
ISODateString | null
optional
Sensor creation timestamp.
LinxioId | null
optional
Device identifier.
LinxioId
required
Sensor identifier.
string | null
optional
Sensor display label.
string | null
optional
Hardware sensor identifier.
string | null
optional
Sensor system status.
LinxioRecord | null
optional
Owning team summary.
string | null
optional
Sensor type.
ISODateString | null
optional
Last update timestamp.
LinxioId | null
optional
Vehicle identifier.
optional
Typed SDK error when install fails.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

sensors.deviceTemperatureHumidityReport()

GET

List device temperature and humidity readings

/devices/sensors/report/temp-and-humiditylinxio.sensors.deviceTemperatureHumidityReport(params)

Loads one page of temperature/humidity readings grouped by device sensor.

Input

object
optional
Object parameter. Expand to see child parameters.
Show child parameters
ISODateString
optional
Optional report date range.
ISODateString
optional
Alternative date range names accepted by some Linxio report flows.
LinxioId
optional
Optional sensor filter.
LinxioId
optional
Optional vehicle filter.
number
optional
Number of readings to request.

Returns

Temperature/humidity readings for the requested page.
Show child fields
number | null
optional
Humidity reading.
ISODateString
optional
Reading timestamp.
LinxioId
optional
Sensor identifier.
number | null
optional
Temperature reading.
LinxioId
optional
Vehicle identifier.
optional
Pagination metadata.
Show child fields
number
required
Page size.
number
required
Current page number.
number
required
Total matching record count.
optional
Typed SDK error when readings cannot be loaded.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

sensors.vehicleTemperatureHumidityReport()

GET

List vehicle temperature and humidity readings

/vehicles/report/sensors/temp-and-humiditylinxio.sensors.vehicleTemperatureHumidityReport(params)

Loads one page of temperature/humidity readings grouped by vehicle.

Input

Date range, pagination, sensorId, vehicleId, and other report filters.
Show child parameters
FieldSelector<TField>
optional
Field projection sent as repeated fields[] query parameters.
number
optional
Maximum records to request per page.
number
optional
Page number to request.
Default: 1
string
optional
Sort expression accepted by Linxio for that endpoint.
QueryValue
optional
Additional endpoint-specific filters forwarded as query parameters.
LinxioId
optional
Sensor identifier filter.
LinxioId
optional
Vehicle identifier filter.
ISODateString
optional
Date range for the sensor report.

Returns

Temperature/humidity readings for the requested page.
Show child fields
number | null
optional
Humidity reading.
ISODateString
optional
Reading timestamp.
LinxioId
optional
Sensor identifier.
number | null
optional
Temperature reading.
LinxioId
optional
Vehicle identifier.
optional
Pagination metadata.
Show child fields
number
required
Page size.
number
required
Current page number.
number
required
Total matching record count.
optional
Typed SDK error when readings cannot be loaded.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

sensors.iterateDeviceTemperatureHumidityReport()

GET

Load all device temperature and humidity readings

/devices/sensors/report/temp-and-humiditylinxio.sensors.iterateDeviceTemperatureHumidityReport(params)

Auto-paginates the device temperature/humidity report into one result object.

Important

Device temperature and humidity reports can return large payloads, especially when using the iterate method. Use pagination, date ranges, and field projection deliberately. Avoid using iterate() in production implementations. It is better to use sensors.streamDeviceTemperatureHumidityReport() for lazy async iteration where possible.

Input

Same parameters as deviceTemperatureHumidityReport().
Show child parameters
FieldSelector<TField>
optional
Field projection sent as repeated fields[] query parameters.
number
optional
Maximum records to request per page.
number
optional
Page number to request.
Default: 1
string
optional
Sort expression accepted by Linxio for that endpoint.
QueryValue
optional
Additional endpoint-specific filters forwarded as query parameters.
LinxioId
optional
Sensor identifier filter.
LinxioId
optional
Vehicle identifier filter.
ISODateString
optional
Date range for the sensor report.

Returns

Flat array containing every loaded reading.
Show child fields
number | null
optional
Humidity reading.
ISODateString
optional
Reading timestamp.
LinxioId
optional
Sensor identifier.
number | null
optional
Temperature reading.
LinxioId
optional
Vehicle identifier.
optional
Typed SDK error if any page fails.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

sensors.streamDeviceTemperatureHumidityReport()

GET

Stream device temperature and humidity readings

/devices/sensors/report/temp-and-humiditylinxio.sensors.streamDeviceTemperatureHumidityReport(params)

Streams device temperature/humidity readings lazily across pages.

Input

Same parameters as deviceTemperatureHumidityReport().
Show child parameters
FieldSelector<TField>
optional
Field projection sent as repeated fields[] query parameters.
number
optional
Maximum records to request per page.
number
optional
Page number to request.
Default: 1
string
optional
Sort expression accepted by Linxio for that endpoint.
QueryValue
optional
Additional endpoint-specific filters forwarded as query parameters.
LinxioId
optional
Sensor identifier filter.
LinxioId
optional
Vehicle identifier filter.
ISODateString
optional
Date range for the sensor report.

Returns

One reading at a time.
Show child fields
number | null
optional
Humidity reading.
ISODateString
optional
Reading timestamp.
LinxioId
optional
Sensor identifier.
number | null
optional
Temperature reading.
LinxioId
optional
Vehicle identifier.
optional
Thrown if a page request fails.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

cameras.events()

GET

List camera events

/devices/cameras/eventslinxio.cameras.events(params)

Loads one page of camera events. Event fields can vary by camera provider and tenant configuration.

Input

ListParams
optional
Pagination, field projection, sorting, and camera-event filters.

Returns

LinxioRecord[] | null
optional
Camera event records.
optional
Pagination metadata.
Show child fields
number
required
Page size.
number
required
Current page number.
number
required
Total matching record count.
optional
Typed SDK error when camera events cannot be loaded.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

cameras.eventTypes()

GET

List camera event types

/devices/cameras/events/typeslinxio.cameras.eventTypes()

Lists camera event types known to Linxio.

Input

void
optional
eventTypes() does not take parameters.

Returns

LinxioRecord[] | null
optional
Camera event type records.
optional
Typed SDK error when event types cannot be loaded.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

On this page