Atlas
Validate SQL

Validate SQL without executing

Runs the full SQL validation pipeline (empty check, regex guard, AST parse, table whitelist) and returns structured results. Does NOT execute the query.

POST
/api/v1/validate-sql

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:3001/api/v1/validate-sql" \  -H "Content-Type: application/json" \  -d '{    "sql": "string"  }'
{
  "valid": true,
  "errors": [
    {
      "layer": "empty_check",
      "message": "string"
    }
  ],
  "tables": [
    "string"
  ]
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string",
  "details": [
    null
  ]
}
{
  "property1": null,
  "property2": null
}