Skip to main content
POST
Run a python report over dashboard-filtered SQL
Re-runs the Python analysis attached to one of this dashboard’s reports over sqlQuery — the report’s own query with the dashboard’s filters and time grains already applied — and returns the result without persisting it. Authorized against the dashboard, exactly as GET /api/v1/embed/dashboard/{publicId} is. The reportVersionId must be one of that dashboard’s published report snapshots and must belong to reportId; anything else returns 403. The Python itself is read server-side from that snapshot — it is never supplied by the caller. The analysis runs under the calling embed user’s own security context, so row-level security applies to the viewer, and the stored result other viewers see is left untouched. Results are cached briefly per (report, code, SQL, user); failures are not cached. Returns 403 when Python analysis is not enabled for the account.

Authorizations

Authorization
string
header
required

Token authentication. Send Authorization: Bearer <YOUR_TOKEN>.

Path Parameters

publicId
string
required

Body

application/json

EmbedPythonFilteredRunInput

reportId
integer
required
reportVersionId
integer
required
sqlQuery
string
required

Response

200 - application/json
at
string
required
inputRowCount
integer
required
stderr
string
required
stdout
string
required
executionError
string | null
outputData
unknown