List Knowledge Bases
Retrieve all knowledge bases for a workspace.
GET
Headers
x-api-keystringrequiredAPI key used for authenticating requests to the API.
x-workspace-idstringrequiredWorkspace identifier for the API.
Response Fields
dataarrayArray of knowledge base objects.
_idstringUnique identifier for the knowledge base.
namestringName of the knowledge base.
descriptionstringDescription of the knowledge base.
workspaceIdstringWorkspace ID associated with the knowledge base.
filesarrayArray of files uploaded to the knowledge base.
createdAtstringTimestamp when the knowledge base was created.
updatedAtstringTimestamp when the knowledge base was last updated.
[
{
"_id": "665a1b2c3d4e5f6a7b8c9d0e",
"name": "Product Documentation",
"description": "All product-related documentation and FAQs",
"workspaceId": "664a1b2c3d4e5f6a7b8c9d0e",
"files": [
{
"name": "product-guide.pdf",
"size": 1048576,
"type": "application/pdf",
"uploadedAt": "2024-06-01T10:00:00.000Z"
}
],
"createdAt": "2024-06-01T09:00:00.000Z",
"updatedAt": "2024-06-01T10:00:00.000Z"
}
]