Finds Knowledge Base Entries that match the given query.
Finds Knowledge Base Entries that match the given query.
Query parameters
-
fields
array[string] -
filter
string Search query
-
sort_field
string Field to sort by
Values are
created_at
,is_default
,title
, orupdated_at
. -
sort_order
string Sort order
Values are
asc
ordesc
. -
page
integer Page number
Minimum value is
1
. Default value is1
. -
per_page
integer Knowledge Base Entries per page
Minimum value is
0
. Default value is20
.
GET
/api/security_ai_assistant/knowledge_base/entries/_find
curl \
--request GET 'http://localhost:5622/api/security_ai_assistant/knowledge_base/entries/_find' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"data": [
{
"global": true,
"name": "string",
"namespace": "string",
"users": [
{
"id": "string",
"name": "string"
}
],
"createdAt": "string",
"createdBy": "string",
"id": "string",
"updatedAt": "string",
"updatedBy": "string",
"kbResource": "security_labs",
"source": "string",
"text": "string",
"type": "document",
"required": true,
"vector": {
"modelId": "string",
"tokens": {
"additionalProperty1": 42.0,
"additionalProperty2": 42.0
}
}
}
],
"page": 42,
"perPage": 42,
"total": 42
}
Response examples (400)
{
"error": "string",
"message": "string",
"statusCode": 42.0
}