Skip to main content
POST
/
api
/
semantic-models
/
sql
/
validate
Validate Sql
curl --request POST \
  --url https://api.example.com/api/semantic-models/sql/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sql": "<string>",
  "limit": 50
}
'
{
  "valid": true,
  "error": "<string>",
  "output_columns": []
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Request to preview SQL execution.

sql
string
required

SQL query to preview

limit
integer
default:50

Row limit

Required range: 1 <= x <= 1000

Response

SQL validation result

Response from SQL validation.

valid
boolean
required
error
string | null
output_columns
Output Columns · object[]

Expected output columns