Spaces method and path for this operation:
get /s/{space_id}/api/security_ai_assistant/knowledge_base/entries/_find
Refer to Spaces for more information.
Finds Knowledge Base Entries that match the given query.
Query parameters
-
A list of fields to include in the response. If not provided, all fields will be included.
-
Search query to filter Knowledge Base Entries by specific criteria.
-
Field to sort the Knowledge Base Entries by.
Values are
created_at,is_default,title, orupdated_at. -
Sort order for the results, either asc or desc.
Values are
ascordesc. -
Page number for paginated results. Defaults to 1.
Minimum value is
1. Default value is1. -
Number of Knowledge Base Entries to return per page. Defaults to 20.
Minimum value is
0. Default value is20.
GET
/api/security_ai_assistant/knowledge_base/entries/_find
curl \
--request GET 'http://localhost:5601/api/security_ai_assistant/knowledge_base/entries/_find?page=1&per_page=20' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"data": [
{
"createdAt": "2024-01-15T10:00:00.000Z",
"createdBy": "user@example.com",
"global": false,
"id": "12345",
"kbResource": "user",
"name": "How to reset a password",
"namespace": "default",
"source": "manual",
"text": "To reset your password, go to the settings page and click 'Reset Password'.",
"type": "document",
"updatedAt": "2024-01-15T10:00:00.000Z",
"updatedBy": "user@example.com"
}
],
"page": 1,
"perPage": 20,
"total": 100
}
Response examples (400)
{
"error": "Bad Request",
"message": "Invalid query parameter: sort_order",
"statusCode": 400
}