Endpoints
Authentication and Headers
All requests require a valid StarTree Cloud Bearer token. Theworkspace header scopes the request to a specific workspace.
POST /api/data/manager/api/query-analyzer/static-analysis
Analyzes a SQL query using only table metadata and explain plan. Does not execute the query. Returns results within seconds.Request Body
Example Request
Example Response
POST /api/data/manager/api/query-analyzer/runtime-analysis
Executes the query against your Pinot cluster using the multi-stage engine (MSE), collects stage execution statistics, then produces evidence-backed findings tied to measured operator metrics. If the query is not MSE-compatible, the service automatically falls back to static analysis. The responseanalysisType field reflects which mode was used, and mseIncompatibleReason is populated on fallback.
Request Body
Example Request
Example Response
Response Schema
Both endpoints return aQueryAnalysisResponse object.
Error Response
When a request fails, the response body contains anerror object and the HTTP status reflects the failure category.
Common HTTP status codes:
Related Documentation
How to Use Query Analyzer
Step-by-step guide to running analysis from the Query Console and via API.
Understanding Recommendations
Full reference for every finding type, recommendation category, operator type, and evidence field in the response.
Security and Compliance
What data is sent to the LLM, access controls, and platform compliance posture.

