Execute free-form analytics SQL
Execute free-form analytics SQL
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.
Request
This endpoint expects an object.
query
Read-only ClickHouse SQL. Must return exactly one column named result produced via toJSONString(…)
project_id
Restrict query to this project. Omit to query the whole workspace.
Response
Query results
results
Errors
400
Bad Request Error
422
Unprocessable Entity Error
501
Not Implemented Error