List dashboard widgets
Retrieve dashboard widgets using GraphQL. Widgets are reusable chart components bound to a report query; they are placed onto dashboards via the dashboard widget placement endpoint.
Query Structure
Filter Argument
All filters are passed inside thefilter argument. Each filter field accepts an input object with operators:
Available Filters
| Filter | Input Type | Operators | Description |
|---|---|---|---|
code | StringInputType | eq, ilike, like, in, between | Widget code |
name | StringInputType | eq, ilike, like, in, between | Widget name |
widget_type | DashboardWidgetTypeInputType | eq, in | Rendering type (bar, line, pie, etc. — see create endpoint for full list) |
report_query_id | IdInputType | eq, gt, gteq, lt, lteq, in, filled | Filter by linked report query |
Filter Operators
| Input Type | Operators |
|---|---|
| StringInputType | eq (exact), ilike (case-insensitive partial), like (case-sensitive partial), in (array match), between (range) |
| IntegerInputType | eq, gt, gteq, lt, lteq, between |
| DatetimeInputType | eq, from, to, between |
| BooleanInputType | eq (required) |
| IdInputType | eq, gt, gteq, lt, lteq, in, filled |
Authorizations
OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.
The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.
Body
GraphQL query string
"query($filter: DashboardWidgetFilterType) { dashboard_widgets { all(filter: $filter) { edges { node { id code name description widget_type configuration dashboard_filters report_query_id } } } } }"
Query variables including the filter object
{
"filter": { "widget_type": { "eq": "bar" } }
}
