Documentation Index
Fetch the complete documentation index at: https://mindsdb-dependabot-npm-and-yarn-docs-multi-349381870a.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Description
This API provides a REST endpoint for executing the SQL queries. Note:- This endpoint is a HTTP POST method.
- This endpoint accept data via
application/jsonrequest body. - The only required key is the
querywhich has the SQL statement value.
Body
String that contains the SQL query that needs to be executed.
Format of the response. Available options:
null(default) - returns all data in a single JSON response"sse"- returns data as Server-Sent Events stream"jsonlines"- returns data as JSON Lines stream (one JSON object per line)
"sse" or "jsonlines" for streaming large result sets to avoid loading all data into memory at once.Optional context object, e.g.,
{"db": "mindsdb"} to specify the database.Optional parameters for parameterized queries, e.g.,
{"name": "value"}.Response
A list with the column names returned
The database where the query is executed
The actual data returned by the query in case of the table response type
The type of the response table | error | ok