linxio-js
SDK Reference

Reports and Digital Forms

Scheduled report lifecycle methods and digital form answer retrieval.

Reports and digital form endpoints are dashboard-derived. Use the typed payloads for common fields and preserve any tenant-specific fields returned by Linxio.

reports.scheduled()

GET

List scheduled reports

/scheduled-reportlinxio.reports.scheduled(params)

Loads one page of scheduled reports.

Input

params.limit
number
optional
Number of reports to request.
params.page
number
optional
Page number to request.
Default: 1
params.format
csv | pdf | xlsx
optional
Optional file format filter when Linxio accepts it.
params.startDate / params.endDate
ISODateString
optional
Optional date range filters when supported by the report endpoint.

Returns

data
LinxioScheduledReport[] | null
optional
Scheduled reports for the requested page.
meta
LinxioPaginationMeta | null
optional
Pagination metadata.
error
LinxioError | null
optional
Typed SDK error when reports cannot be loaded.

reports.scheduledTemplate()

GET

Get scheduled report template

/scheduled-report/templatelinxio.reports.scheduledTemplate()

Fetches the scheduled-report template used by the dashboard.

Input

none
void
optional
scheduledTemplate() does not take parameters.

Returns

data
LinxioRecord | null
optional
Dashboard template metadata. Shape can vary by tenant and enabled report types.
error
LinxioError | null
optional
Typed SDK error when the template cannot be loaded.

reports.getScheduled()

GET

Get a scheduled report

/scheduled-report/{reportId}linxio.reports.getScheduled(reportId)

Fetches one scheduled report by ID.

Input

reportId
LinxioId
required
Scheduled report identifier.

Returns

data
LinxioScheduledReport | null
optional
Scheduled report record.
error
LinxioError | null
optional
Typed SDK error when the report cannot be loaded.

reports.createScheduled()

POST

Create a scheduled report

/scheduled-reportlinxio.reports.createScheduled(payload)

Creates a scheduled report.

Input

payload.name
string
required
Scheduled report display name.
payload.type
string
required
Report type accepted by Linxio.
payload.format
csv | pdf | xlsx
required
Output format.
payload.params
Record<string, unknown>
optional
Report-specific parameters such as recipients, schedule, date range, vehicle IDs, or filters.

Returns

data
LinxioScheduledReport | null
optional
Created scheduled report.
error
LinxioError | null
optional
Typed SDK error when creation fails.

reports.updateScheduled()

PATCH

Update a scheduled report

/scheduled-report/{reportId}linxio.reports.updateScheduled(reportId, payload)

Updates a scheduled report.

Input

reportId
LinxioId
required
Scheduled report identifier.
payload
Partial<LinxioScheduledReportPayload>
required
Partial scheduled-report payload containing fields to change.

Returns

data
LinxioScheduledReport | null
optional
Updated scheduled report.
error
LinxioError | null
optional
Typed SDK error when update fails.

reports.deleteScheduled()

DELETE

Delete a scheduled report

/scheduled-report/{reportId}linxio.reports.deleteScheduled(reportId)

Deletes a scheduled report.

Input

reportId
LinxioId
required
Scheduled report identifier.

Returns

data
void
optional
Undefined on success.
error
LinxioError | null
optional
Typed SDK error when delete fails.

reports.restoreScheduled()

PATCH

Restore a scheduled report

/scheduled-report/{reportId}/restorelinxio.reports.restoreScheduled(reportId)

Restores a scheduled report when the dashboard-derived restore endpoint is available.

Input

reportId
LinxioId
required
Scheduled report identifier.

Returns

data
void
optional
Undefined on success.
error
LinxioError | null
optional
Typed SDK error when restore fails.

digitalForms.list()

GET

List digital forms

/digital-form/formlinxio.digitalForms.list()

Lists digital forms visible to the authenticated account.

Input

none
void
optional
list() does not take parameters.

Returns

data
LinxioDigitalForm[] | null
optional
Digital form records.
error
LinxioError | null
optional
Typed SDK error when forms cannot be loaded.

digitalForms.get()

GET

Get a digital form

/digital-form/form/{formId}linxio.digitalForms.get(formId)

Fetches one digital form by ID.

Input

formId
LinxioId
required
Digital form identifier.

Returns

data
LinxioDigitalForm | null
optional
Digital form record.
error
LinxioError | null
optional
Typed SDK error when the form cannot be loaded.

digitalForms.answer()

GET

Get a form answer

/digital-form/answer/{answerId}linxio.digitalForms.answer(answerId)

Fetches a digital form answer record.

Input

answerId
LinxioId
required
Digital form answer identifier.

Returns

data
LinxioRecord | null
optional
Digital form answer payload. Shape varies by form schema.
error
LinxioError | null
optional
Typed SDK error when the answer cannot be loaded.

digitalForms.answerPdf()

GET

Download a form answer PDF

/digital-form/answer/{answerId}/pdflinxio.digitalForms.answerPdf(answerId)

Downloads a digital form answer as a PDF Blob.

Input

answerId
LinxioId
required
Digital form answer identifier.

Returns

data
Blob | null
optional
PDF binary data.
error
LinxioError | null
optional
Typed SDK error when the PDF cannot be downloaded.

On this page