Export
POST
/api/v3/export/sqlExport the result of a read-only ClickHouse query
Runs one SELECT against the activity log tables (the same guarded runner as the app's SQL editor: read-only, per-table read permissions, environment row policies, 10s and 1000-row caps). Requires dashboard:RunCustomQuery. {environmentId} and {timezone} are available as bound variables.
Request body (optional)
sqlstringrequiredformatenumjsonndjsoncsvxlsx
filenamestringResponses
200Query rows in the requested format
dataobject[]requiredcolumnsstring[]required400Invalid or non-read-only SQL
403Insufficient permissions
Sending requests from a browser
Open https://v3.revolutionstreetwxs.io/api/v3/docs to send requests to this endpoint with your API key.