Text to SQL
Generate semantically correct SQL queries from text.
POST
/
v1
/
ai
/
sql
Body
prompt
string
requiredThe prompt that will be translated to an SQL query.
sql_schema
string
The database schema where the query will be run. Not required if
file_store_key
is specified.
file_store_key
string
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
x-api-key
string
requiredYour JigsawStack API key
Response
success
boolean
Indicates whether the call was successful.
Was this page helpful?