POST
/
queries
/
top-documents
Top Documents
curl --request POST \
  --url https://api.zeroentropy.dev/v1/queries/top-documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "collection_name": "<string>",
  "query": "<string>",
  "k": 123,
  "filter": {},
  "include_metadata": false,
  "reranker": "<string>",
  "latency_mode": "low"
}'
{
  "results": [
    {
      "path": "<string>",
      "score": 123,
      "metadata": {},
      "file_url": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

The Authorization header must be provided in the format Bearer <your-api-key>.

You can get your API Key at the Dashboard!

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.