Add Widget to Dashboard
Create a new widget, add it to the dashboard, and compute its results
Documentation Index
Fetch the complete documentation index at: https://docs.gp.scale.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Headers
Path Parameters
Body
Widget title
1 - 256Widget type
bar, histogram, donut, scatter, metric, table, markdown, heading, timeseries Query that returns a series of records (used for table/bar/histogram/donut/scatter widgets).
Used for widget types: table, bar, histogram, donut, scatter. Returns: {"type": "series", "data": [...]}
Example SQL equivalent: SELECT category, AVG(score) as avg_score, COUNT(*) as count FROM evaluation_items WHERE score > 0.5 AND category = 'test' GROUP BY category ORDER BY avg_score DESC LIMIT 100
- SeriesQuery
- MetricQuery
Chart-specific display configuration
Response
Successful Response
Response model for widget creation - includes widget and computed result
Unique identifier of the widget
Widget title
Widget type
bar, histogram, donut, scatter, metric, table, markdown, heading, timeseries Account that owns this widget
When the widget was created
"evaluation_widget"Query that returns a series of records (used for table/bar/histogram/donut/scatter widgets).
Used for widget types: table, bar, histogram, donut, scatter. Returns: {"type": "series", "data": [...]}
Example SQL equivalent: SELECT category, AVG(score) as avg_score, COUNT(*) as count FROM evaluation_items WHERE score > 0.5 AND category = 'test' GROUP BY category ORDER BY avg_score DESC LIMIT 100
- SeriesQuery
- MetricQuery
Display configuration
Computed result for this widget

