Trillet AI logo

Get Knowledge Base

Retrieve a specific knowledge base by its ID.

GEThttps://api.trillet.ai/v1/api/knowledgebase/{id}

Headers

x-api-keystringrequired

API key used for authenticating requests to the API.

x-workspace-idstringrequired

Workspace identifier for the API.

Path Parameters

idstringrequired

The unique identifier of the knowledge base.

Response Fields

_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"
}