Start typing to search.

API Reference

Stream a full export of an explorer widget

View Markdown
POST /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 bearer·API key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.

Path parameters

idintegerrequired

Resource ID

widgetIdstringrequired

Request body

Content typeapplication/json

requestobject
3 properties
explorer_paramsobject

Viewer-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
itemobject
3 properties
fieldstringrequired
operatorstringrequired
valueunknown
sortarray<object>
Array items
itemobject
2 properties
columnstring
directionstring
pageinteger
limitinteger
columnsarray<string>
Array items
itemstring
cursorstring
formatstring
filenamestring

Success 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

responseobject
2 properties
errorstring
messagestring
Example response
{
  "error": "VALIDATION_ERROR",
  "message": "Invalid input"
}

404Resource not found

Resource not found

Content typeapplication/json

responseobject
2 properties
errorstring
messagestring
Example response
{
  "error": "NOT_FOUND",
  "message": "Resource not found"
}