POST
Run a SQL statement

Authorizations

Authorization
string
header
required

Your Gwenlake API key, sent as Authorization: Bearer <key>.

Headers

x-user
string | null

Body

application/json

POST /sql/statements — run a SQL statement live (ad hoc, nothing stored). The stored form is the sql-query resource (/sql/queries, app/schemas/sql_queries.py).

statement
string
required
format
string | null
default:pyarrow
mode
enum<string>
default:duckdb
Available options:
duckdb,
spark
limit
integer | null
Required range: x >= 1

Response

Successful Response