Skip to main content
The Widgets Dashboard APIs let you discover which widgets are available for a given screen and fetch the data for each individual widget.

Prerequisites

Before making calls to the Widget API, you need to have:

Base URL

If the server is configured with UseBasePath: true, all routes are prefixed with /operational:

Authentication

All endpoints require authentication via JWT bearer token. Include the token in every request:
See Security & Token for details on obtaining a token.

Available endpoints

The following endpoints are available. Select a card to view the full API reference.

List widgets for a screen

Returns all widgets configured for a given screen type, including their IDs, names, and configurations.

Retrieve widget data

Fetches data for a specific widget with full filter support (date range, machine ID, etc.). Recommended for most use cases.
The GET simple variant (GET /v1/dashboard/widget-data) is not included in the API reference as it is not defined in the OpenAPI spec. Use the POST variant for filter support and full API reference coverage.

Typical integration flow

A standard integration follows three steps: discover available widgets, fetch their data with optional filters, then parse the response payload.

Error handling

The following HTTP status codes may be returned by the widget endpoints:

Permissions

Each endpoint requires the authenticated user to have a specific menu permission assigned in Lynx. Permissions are checked by the GetContext() middleware on every request:
GET /v1/dashboard/widget-data requires lynx_report_get_widget, which is separate from lynx_report_get_widget_data (the POST variant). If you have access to the POST endpoint but receive a 403 on the GET endpoint, request the lynx_report_get_widget permission in your Lynx role configuration.