POST
/
v1
/
ai
/
sql

Body

prompt
string
required

The 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.
x-api-key
string
required

Your JigsawStack API key

Response

success
boolean

Indicates whether the call was successful.