Skip to main content
GET
https://api.trillet.ai
/
v1
/
api
/
knowledgebase
List Knowledge Bases
curl --request GET \
  --url https://api.trillet.ai/v1/api/knowledgebase \
  --header 'x-api-key: <api-key>' \
  --header 'x-workspace-id: <x-workspace-id>'
[
  {
    "_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"
  }
]

Headers

x-api-key
string
required
API key used for authenticating requests to the API.
x-workspace-id
string
required
Workspace identifier for the API.

Response Fields

data
array
Array of knowledge base objects.
_id
string
Unique identifier for the knowledge base.
name
string
Name of the knowledge base.
description
string
Description of the knowledge base.
workspaceId
string
Workspace ID associated with the knowledge base.
files
array
Array of files uploaded to the knowledge base.
createdAt
string
Timestamp when the knowledge base was created.
updatedAt
string
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"
  }
]