POST
/v1/internal/analytics-queries/projects/{projectId}Execute Agent Insights free-form SQLRuns Ollie-generated read-only SQL bounded to the caller's workspace and the requested project. Returns 501 when the Agent Insights toggle is off.
Parameters
projectIdstring · uuidpathrequiredRequest body
application/json
objectAnalyticsQueryRequest
querystringrequiredRead-only ClickHouse SQL. Must return exactly one column named `result` produced via toJSONString(...)
{
"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"
}