Skip to main content
Version: Next

SQL Query

POST 

/v1/sql

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.

Request​

Responses​

SQL query executed successfully

Response Headers
    Server-Timing

    The time the server spent on the query, in milliseconds: total;dur=<ms> (W3C Server-Timing). Sent on every response whose body is complete before its head is sent — every format except the default streamed application/json, and every error. A streamed application/json body is not complete until it ends, so it sends the field as a trailer instead (declared by Trailer: Server-Timing) when the request accepts trailers: HTTP/2, or TE: trailers on HTTP/1.1.