Prerequisites
Before making calls to the Widget API, you need to have:- Access to the Lynx QA or Production environment
- A valid API token (See Security & Token)
- Machines or Operator IDs
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: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 theGetContext() 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.