POST
/v1/internal/analytics-queriesExecute free-form analytics SQLRuns 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 body
application/json
objectScopedAnalyticsQueryRequest
project_idstring · uuidRestrict query to this project. Omit to query the whole workspace.
querystringrequiredRead-only ClickHouse SQL. Must return exactly one column named `result` produced via toJSONString(...)
{
"project_id": "00000000-0000-0000-0000-000000000000",
"query": "string"
}Responses
objectAnalyticsQueryResponse
resultsarray of objectShow child attributes
{
"results": [
{}
]
}objectErrorMessage
codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}objectErrorMessage
codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}