curl --request GET \
--url https://api.trugen.ai/v1/knowledgebase/{id} \
--header 'x-api-key: <api-key>'{
"knowledge_base": {
"id": "ff152cd9-efb6-4367-a545-b861c9fbd3d0",
"name": "Test 10",
"description": "Test desc",
"no_of_rec": 20,
"created_at": "2025-10-08T16:34:19.984033Z",
"updated_at": "2025-10-08T16:34:19.984033Z"
},
"documents": [
{
"id": "9a2ad090-aafe-4662-8eb8-a11a404431ea",
"name": "Resume.docx",
"preview_url": "https://trugen.s3.us-east-2.amazonaws.com/uploads/kb/ff152cd9-efb6-4367-a545-b861c9fbd3d0/Resume.docx",
"type": ".docx"
},
{
"id": "a991725c-12b3-4bee-afc2-0689111848fe",
"name": "58910277-a9cd-4a34-91ad-23654843bce5.txt",
"preview_url": "https://trugen.s3.us-east-2.amazonaws.com/uploads/kb/ff152cd9-efb6-4367-a545-b861c9fbd3d0/58910277-a9cd-4a34-91ad-23654843bce5.txt",
"type": "text"
}
]
}Retrieves a specific knowledge base and its associated documents using the provided Knowledge Base ID. Requires x-api-key authentication.
curl --request GET \
--url https://api.trugen.ai/v1/knowledgebase/{id} \
--header 'x-api-key: <api-key>'{
"knowledge_base": {
"id": "ff152cd9-efb6-4367-a545-b861c9fbd3d0",
"name": "Test 10",
"description": "Test desc",
"no_of_rec": 20,
"created_at": "2025-10-08T16:34:19.984033Z",
"updated_at": "2025-10-08T16:34:19.984033Z"
},
"documents": [
{
"id": "9a2ad090-aafe-4662-8eb8-a11a404431ea",
"name": "Resume.docx",
"preview_url": "https://trugen.s3.us-east-2.amazonaws.com/uploads/kb/ff152cd9-efb6-4367-a545-b861c9fbd3d0/Resume.docx",
"type": ".docx"
},
{
"id": "a991725c-12b3-4bee-afc2-0689111848fe",
"name": "58910277-a9cd-4a34-91ad-23654843bce5.txt",
"preview_url": "https://trugen.s3.us-east-2.amazonaws.com/uploads/kb/ff152cd9-efb6-4367-a545-b861c9fbd3d0/58910277-a9cd-4a34-91ad-23654843bce5.txt",
"type": "text"
}
]
}Unique identifier of the knowledge base in UUID format.
"d837afdc-f95f-4e4d-abe4-40894db22a02"
Successful Knowledge Base retrieval
Show child attributes
Unique identifier of the knowledge base in UUID format.
"ff152cd9-efb6-4367-a545-b861c9fbd3d0"
Human-readable name of the knowledge base.
"Sample Knowledge Base"
Short description summarizing the purpose or content of the knowledge base.
"HR related policies."
Total number of records/documents stored in the knowledge base.
20
Timestamp representing when the knowledge base was initially created (ISO 8601 format).
"2025-10-08T16:34:19.984033Z"
Timestamp representing the most recent update to the knowledge base (ISO 8601 format).
"2025-10-08T16:34:19.984033Z"
Show child attributes
Unique identifier for the document in UUID format.
"9a2ad090-aafe-4662-8eb8-a11a404431ea"
Original file name of the document.
"hr-policies.pdf"
File extension indicating the document type (.pdf, .docx or .txt).
".pdf"
Publicly accessible URL to preview or download the document.
"<PUBLIC_URL>"