GET
/
ai-knowledge-bases
/
{kb_id}
/
search
Search Specific Knowledge Base
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
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication using the Authorization header

Path Parameters

kb_id
string
required

(i64 formatted as string)

Query Parameters

query
string
required
limit
integer
default:10
Required range: 1 <= x <= 100
threshold
number
default:0.7
Required range: 0 <= x <= 1

Response

Successful response

The response is of type object.