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. Specifying this parameter improves SQL generation
accuracy by applying database-specific syntax and optimizations.
postgresql- PostgreSQL databasemysql- MySQL databasesqlite- SQLite database
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.
Usage information for the API call.
A unique identifier for the request
The generated SQL query based on the natural language prompt and provided
schema.