Trillet AI logo

List Knowledge Bases

Retrieve all knowledge bases for a workspace.

GEThttps://api.trillet.ai/v1/api/knowledgebase

Headers

x-api-keystringrequired

API key used for authenticating requests to the API.

x-workspace-idstringrequired

Workspace identifier for the API.

Response Fields

dataarray

Array of knowledge base objects.

_idstring

Unique identifier for the knowledge base.

namestring

Name of the knowledge base.

descriptionstring

Description of the knowledge base.

workspaceIdstring

Workspace ID associated with the knowledge base.

filesarray

Array of files uploaded to the knowledge base.

createdAtstring

Timestamp when the knowledge base was created.

updatedAtstring

Timestamp 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"
  }
]