SQL
Text to SQL
Generate and optionally execute an NSQL query.
This endpoint generates a SQL query using a natural language query (NSQL) and optionally executes it. The SQL query is generated by the specified model and executed if the Accept header is not set to application/sql.
post/v1/nsql
Headers
Acceptstring required
The format of the response, one of 'application/json' (default), 'application/sql', 'text/csv' or 'text/plain'. 'application/sql' will only return the SQL query generated by the model.
Request body
Response
SQL query executed successfully