post
https://api.superwise.ai/v1/datasets/sql-query
Validate or execute an SQL SELECT statement against datasets.
- sql (str): Required. A SELECT statement where table names are dataset IDs.
- validate_only (bool): Optional. When True, validate without executing.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Validates or runs a SQL SELECT statement against datasets. Table names in the statement are dataset IDs.
When to use it
Use it to read records from one or more datasets. Set validate_only to true to check a statement without running it, and thumbnail_size to embed image columns as base64 thumbnails.
Required parameters
sql(body): a SELECT SQL query to validate or execute.
Optional body fields: validate_only, thumbnail_size.
Response
A successful call returns 200 OK with valid, whether the statement is valid; error; and data, the result rows.
Related: Query datasets in natural language, Get a dataset, Get an image from a dataset
400Bad Request
422Unprocessable Entity