API Reference
Stream a full export of an explorer widget
/api/dashboards/{id}/widgets/{widgetId}/export
Streams every row matching the explorer widget's merged query (author base_query + viewer filters/sort/columns) as a CSV/JSON/NDJSON file download — no pagination and no server-side buffering. Fails for non-explorer widgets and widgets whose features list omits export. Cancel by aborting the request.
Operation IDexportDashboardWidget
Authentication
- BearerAuth
http bearerAPI key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.
Path parameters
idintegerrequiredResource ID
widgetIdstringrequiredRequest body
Content typeapplication/json
requestobject3 properties
explorer_paramsobjectViewer-supplied refinements for an explorer widget. Merged into the author's base_query — base filter keys always win, and when the widget declares columns they act as an allowlist for filters/sort/columns.
6 properties
filtersarray<object>Array items
itemobject3 properties
fieldstringrequiredoperatorstringrequiredvalueunknownsortarray<object>Array items
itemobject2 properties
columnstringdirectionstringpageintegerlimitintegercolumnsarray<string>Array items
itemstringcursorstringformatstringfilenamestringSuccess response body
200Streamed file download. Gzip when Accept-Encoding includes gzip.
Streamed file download. Gzip when Accept-Encoding includes gzip.
Content typetext/csv
No schema is documented.
Content typeapplication/x-ndjson
No schema is documented.
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"
}