Security AI Assistant API
Read a Knowledge Base Entry
Spaces method and path for this operation:
<div><span class="operation-verb get">get</span> <span class="operation-path">/s/{space_id}/api/security_ai_assistant/knowledge_base/entries/{id}</span></div>Refer to Spaces for more information.
Retrieve a Knowledge Base Entry by its unique id.
get/api/security_ai_assistant/knowledge_base/entries/{id}
Path parameters
idstring nonempty required
A string that does not contain only whitespace characters.
Example:I am a string
The unique identifier (id) of the Knowledge Base Entry to retrieve.
Response
Successful request returning the requested Knowledge Base Entry.
Example response
{
"name": "Example Entry",
"namespace": "default",
"users": [
{
"id": "user123",
"name": "John Doe"
}
],
"createdAt": "2023-01-01T12:00:00Z",
"createdBy": "admin",
"id": "I am a string",
"updatedAt": "2023-01-02T12:00:00Z",
"updatedBy": "editor",
"kbResource": "security_labs",
"source": "/documents/example.txt",
"text": "This is the content of the document.",
"type": "document",
"vector": {
"modelId": "bert-base-uncased",
"tokens": {
"token1": 0.123,
"token2": 0.456
}
}
}