Trillet AI logo

Create Knowledge Base

Create a new knowledge base in your workspace.

POSThttps://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.

Request Body

namestringrequired

Name of the knowledge base.

descriptionstring

Description of the knowledge base.

Response Fields

_idstring

Unique identifier for the newly created knowledge base.

namestring

Name of the knowledge base.

descriptionstring

Description of the knowledge base.

workspaceIdstring

Workspace ID associated with the knowledge base.

createdAtstring

Timestamp when the knowledge base was created.

{
  "_id": "665a1b2c3d4e5f6a7b8c9d0e",
  "name": "Product Documentation",
  "description": "All product-related documentation and FAQs",
  "workspaceId": "664a1b2c3d4e5f6a7b8c9d0e",
  "files": [],
  "createdAt": "2024-06-01T09:00:00.000Z",
  "updatedAt": "2024-06-01T09:00:00.000Z"
}