Requests are rate limited to 30 executions per minute per authenticated user or API key.
Request fields
Raw SQL to execute. Mutually exclusive with
query_id.Execute a saved query stored in Supabase. Ignored when
query is supplied.Optional row limit override. Useful when running saved queries with large defaults.
Saved query execution
When you providequery_id, the service fetches the latest SQL from Supabase before execution. Use this flow to keep complex statements version-controlled while reusing the same API call.
Response structure
result.columnslists column names in orderresult.datacontains an array of rows (each row is an ordered array)result.execution_time_msreports end-to-end latencyqueryechoes the executed SQL after namespace rewriting
Example Response
Validate before running
Use POST /api/query/validate to confirm syntax and inspect ClickHouseEXPLAIN output without incurring compute.