Text to SQL
Generate semantically correct SQL queries from natural language prompts.
POST
Request Parameters
Body
The natural language prompt that will be translated to an SQL query. Minimum length: 10 characters
The database schema where the query will be run. Not required if
file_store_key
is specified.
The database type to generate SQL for. Supported values are postgresql
,
mysql
, or sqlite
. Specifying this parameter improves SQL generation
accuracy by applying database-specific syntax and optimizations.
The key used to store the database schema on Jigsawstack file
Storage. Not required if sql_schema
is
specified.
Either
file_store_key
or sql_schema
can be provided not both.Header
Your JigsawStack API key
Response Structure
Indicates whether the call was successful.
The generated SQL query based on the natural language prompt and provided schema.