Backend API
Search within a specific knowledge base
cURL
curl --request GET \ --url https://api.wacht.dev/ai-knowledge-bases/{kb_id}/search \ --header 'Authorization: Bearer <token>'
{ "results": [ { "document_id": "<string>", "document_name": "<string>", "content": "<string>", "score": 0.5, "metadata": {} } ], "total_results": 123 }
JWT Bearer token authentication using the Authorization header
(i64 formatted as string)
1 <= x <= 100
0 <= x <= 1
Successful response
The response is of type object.
object