linxio-js

Getting Started

Install linxio-js and make your first authenticated Linxio request.

Install

The package ships ESM, CommonJS, and TypeScript declarations. No configuration needed — import and go.

Create a client

createClient(options)

Instantiate a client once per process. Pass optional configuration for timeout, retry behaviour, and a custom fetch implementation.

Parameters

timeoutMs
number
optional
Per-request timeout. Throws LinxioTimeoutError when exceeded.
Default: 30000
retry
{ retries?: number; delayMs?: number }
optional
Retry policy for transient failures on idempotent requests.

Authenticate

POST

Authenticate

/loginlinxio.auth.login(payload)

Login stores the session in memory. Subsequent service calls include the bearer token automatically. Store the session yourself if your process needs to survive restarts.

Read vehicles

Read vehicles

linxio.vehicles.list(params)

Paginated list with field projection. Use iterate() to auto-page everything into one array, or stream() for lazy async iteration.


Need full method signatures and return shapes? See the SDK Reference and API Reference.

On this page