Export a panel's query result as CSV or XLSX.
Re-runs the panel's query through the SAME pushdown path as POST /v1/data/query (ADR-0011, parameter-bound per DVT-7 — an export is a re-run, never a privileged side channel), then streams the result rows serialized as CSV or XLSX. Honors the same tenant gate and connection/role RBAC as a normal panel query: a cross-tenant sourceId returns 404, and the query runs under the same warehouse identity (no privilege escalation via export).
Requires the data:export capability (DVT-127) — enforced server-side, not only in the UI. Results are never served from the result cache: an export is a deliberate data-egress event, so it always reflects live rows and is recorded as an audit_logs entry (who/what/when/row-count).
View-state (v1): send the panel's CURRENT params (dashboard filter selections + drill state) so what-you-see-is-what-you-export at the filter level. The exported rows are the FLAT, query-ordered result — client-side table column sort/filter (DVT-135) and grouped/pivot rollups (DVT-113) are not replayed server-side in v1. The result inherits the engine's row cap; X-DVT-Truncated: true marks a cut-off.
XLSX cells are typed (numbers and booleans are native cells, not stringified); the header row uses the resolved column labels.
Request
- Base URL: http://localhost:8080
- URL: http://localhost:8080/v1/data/export
- Auth: one of:
- API key in cookie dvt_session
- HTTP bearer
Request body
Response
The serialized export file (CSV or XLSX) as an attachment.
Changes
No recorded changes to this operation across all 1 revision of this API.