Documents
Semantic Search over Knowledge Documents
POST
/api/knowledge/documents/hub-queryOverview
Embeds the query and searches the Qdrant chunks of processed documents the caller may view. Results are ordered by cosine similarity (no reranker).
Authentication & Headers
- Auth: Bearer Token
- Required Header:
API-Version: 1
Parameters & Request Body Fields
query(string, required): Natural language question.top_k(integer, optional, default: 5, max: 20): Maximum returned chunks.threshold(number, optional, default: 0.35): Minimum similarity.filters.document_ids(array, optional): Restrict the search to these documents.
Request body
application/json
{} Responses
200 Matching chunks
400 Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).
401 Unauthorized - Missing, invalid, or expired JWT Bearer token.
403 Forbidden - Insufficient role permissions or resource access denied by RBAC policy.
404 Not Found - The requested resource ID was not found.
422 Empty query or invalid top_k/threshold
detailobject[]detail[].locstring | integer[]requireddetail[].msgstringrequireddetail[].typestringrequireddetail[].inputobjectdetail[].ctxobject{
"detail": [
{
"loc": [
null
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
} 503 Search backend temporarily unavailable
Example
curl -X POST "$PINTER_URL/api/knowledge/documents/hub-query" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'