Skip to content

First Query

Use this tutorial after a collection already exists and contains indexed content.

Terminal window
curl -X POST "http://localhost:8081/query" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{
"query": "What does this collection say about contracts?",
"collection_name": "example",
"with_payload": true,
"limit_w_hits": 10
}'

Expected top-level response shape:

{
"status": true,
"message": "query: ...",
"data": {}
}

The data object is route-specific and depends on the collection contents.