v1

latestOpenAPI 3.1.02026-07-1730321418.0 KB
SQL

SQL Query

Execute a SQL query and return the results.

This endpoint allows users to execute SQL queries directly from an HTTP request. The SQL query is sent as plain text in the request body.

post/v1/sql

Headers

Acceptstring required

The format of the response, one of 'application/json' (default), 'application/vnd.spiceai.sql.v1+json', 'text/csv' or 'text/plain'.

Request body

{"stackTrail":"paths:/v1/sql:post:requestBody:content:application/json:schema","oasType":"schema","type":"unknown"}

Response

SQL query executed successfully

{"stackTrail":"paths:/v1/sql:post:responses:200:content:application/json:schema:items","oasType":"schema","type":"unknown"}