API Reference
Execute a widget data query
POST
/api/dashboards/{id}/widgets/{widgetId}/data
Resolves the job's connector mapping, evaluates JSONata in the widget config, and calls a readonly connector method. Response size is capped at 2 MB.
Operation IDexecuteDashboardWidget
Authentication
- BearerAuth
http bearerAPI key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.
Path parameters
idintegerrequiredResource ID
widgetIdstringrequiredSuccess response body
200Widget data
Widget data
Content typeapplication/json
responseobject2 properties
widget_idstringdataunknownWidget-specific payload (count, rows, chart series, etc.)
Error responses
400Validation error
Validation error
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "VALIDATION_ERROR",
"message": "Invalid input"
}404Resource not found
Resource not found
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "NOT_FOUND",
"message": "Resource not found"
}