Skip to main content

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

FieldTypeRequiredDefaultDescriptionConstraints
sqlstringYesOne SQL statement, run with the caller's identity.

Responses

CodeDescription
200The columns, the rows and the engine's query id
400The statement is empty, was refused or failed in the engine
401Not signed in
502The query engine is not reachable