query
Execute an RQL query
Changed onExecute SQL-like queries against documents using ReasonDB Query Language (RQL).
Supports:
- WHERE clauses for filtering by tags, author, metadata
- SEARCH clause for BM25 full-text search (fast keyword matching)
- REASON clause for LLM semantic search (intelligent answer extraction)
- GROUP BY and aggregate functions (COUNT, SUM, AVG)
- EXPLAIN to view query execution plans
post/v1/query
Request
- Base URLhttps://your-reasondb-host
- Auth
- API key in header X-Api-Key
- or none
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"query": "SELECT * FROM legal WHERE author = 'Alice' LIMIT 10"
}Response
Query executed successfully
Changes
- breaking
the
response's property type changed fromobjectto no type for status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
added to the
response propertyallOflist for the response status
- breaking
- warning
removed the optional property
//from the response with the status - info
added the optional property
//to the response with the status
- warning