Skip to navigation

Run free-form analytics SQL

View as Markdown

Runs read-only SQL bounded to the caller’s workspace. Supply project_id to restrict traces, spans, feedback scores and trace threads to one project, or omit it to cover the whole workspace. Experiments, experiment items and dataset items always cover the whole workspace. Returns 501 when Custom Charts or its public endpoints are not enabled.

Request

This endpoint expects an object.
querystringRequired0-65536 characters

Read-only ClickHouse SQL. Must return exactly one column named result produced via toJSONString(…)

project_idstringOptionalformat: "uuid"
Restrict query to this project. Omit to query the whole workspace.

Response

Query results
resultslist of objectsOptional

Errors

400
Bad Request Error
422
Unprocessable Entity Error
429
Too Many Requests Error
501
Not Implemented Error