Nova API — /api/query
The operations Nova tags public under /api/query. Generated from reference-src/nova-openapi.json.
POST /api/query
Operation id query_run: in Python client.call("query_run", …), on the command line stardelt api query_run.
Run one SQL statement as the caller and return the whole result. Synchronous: the call returns when the query ends. At most 50 000 rows or about 64 MiB of data are returned; past that truncated is true and the rows are a prefix.
Request body
| Field | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
sql | string | Yes | One SQL statement, run with the caller's identity. |
Responses
| Code | Description |
|---|---|
200 | The columns, the rows and the engine's query id |
400 | The statement is empty, was refused or failed in the engine |
401 | Not signed in |
502 | The query engine is not reachable |