Skip to main content
GET
/
knowledgebase
Get all Knowledge Bases
curl --request GET \
  --url https://api.trugen.ai/v1/knowledgebase \
  --header 'x-api-key: <api-key>'
[
  {
    "id": "ff152cd9-efb6-4367-a545-b861c9fbd3d0",
    "name": "Sample Knowledge Base",
    "description": "HR related policies.",
    "no_of_rec": 20,
    "documents": [
      {
        "id": "9a2ad090-aafe-4662-8eb8-a11a404431ea",
        "name": "hr-policies.pdf",
        "type": ".pdf",
        "preview_url": "<PUBLIC_URL>"
      }
    ],
    "created_at": "2025-10-08T16:34:19.984033Z",
    "updated_at": "2025-10-08T16:34:19.984033Z"
  }
]

Authorizations

x-api-key
string
header
required

Response

List of all knowledge bases you have access to.

id
string<uuid>

Unique identifier of the knowledge base in UUID format.

Example:

"ff152cd9-efb6-4367-a545-b861c9fbd3d0"

name
string

Human-readable name of the knowledge base.

Example:

"Sample Knowledge Base"

description
string

Short description summarizing the purpose or content of the knowledge base.

Example:

"HR related policies."

no_of_rec
integer

Total number of records/documents stored in the knowledge base.

Example:

20

documents
object[]

A list of documents stored inside the knowledge base. Each item represents a single document and contains the fields below.

created_at
string<date-time>

Timestamp representing when the knowledge base was initially created (ISO 8601 format).

Example:

"2025-10-08T16:34:19.984033Z"

updated_at
string<date-time>

Timestamp representing the most recent update to the knowledge base (ISO 8601 format).

Example:

"2025-10-08T16:34:19.984033Z"