System analytics queries

Execute Agent Insights free-form SQL

Changed on

Runs Ollie-generated read-only SQL bounded to the caller's workspace and the requested project. Returns 501 when the Agent Insights toggle is off.

post/v1/internal/analytics-queries/projects/{projectId}

Request

  • Base URL
    http://localhost:5173/api
  • URL
    http://localhost:5173/api/v1/internal/analytics-queries/projects/{projectId}
  • Auth
    none declared

Path parameters

projectIdstring uuid required

Request body

querystring required

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

Response

Query results

resultsJsonNode[]

Changes