curl --location 'https://api.weya.live/backend/api/knowledgeBase/687b1c2ab7c7d3f123456789' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "KnowledgeBase retrieved successfully",
"errorMessage": null,
"data": {
"_id": "687b1c2ab7c7d3f123456789",
"organizationId": "64e5f12345abcdef00000001",
"knowledgeBaseName": "Customer Support Knowledge Base",
"description": "Contains FAQs and support documentation.",
"bucketUrl": "https://…/",
"vectorDbCollection": "kb_customer_support_1a2b3c",
"status": "PENDING",
"createdAt": "2026-07-18T08:12:31.000Z",
"updatedAt": "2026-07-20T10:35:00.000Z"
}
}
Knowledge Base
Get Knowledge Base By ID
Retrieve the details of one knowledge base in your organization.
GET
/
api
/
knowledgeBase
/
{knowledgeBaseId}
curl --location 'https://api.weya.live/backend/api/knowledgeBase/687b1c2ab7c7d3f123456789' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "KnowledgeBase retrieved successfully",
"errorMessage": null,
"data": {
"_id": "687b1c2ab7c7d3f123456789",
"organizationId": "64e5f12345abcdef00000001",
"knowledgeBaseName": "Customer Support Knowledge Base",
"description": "Contains FAQs and support documentation.",
"bucketUrl": "https://…/",
"vectorDbCollection": "kb_customer_support_1a2b3c",
"status": "PENDING",
"createdAt": "2026-07-18T08:12:31.000Z",
"updatedAt": "2026-07-20T10:35:00.000Z"
}
}
Overview
Retrieve one knowledge base in your organization. The response has its name, description and search index, but not its files: list those with List Knowledge Base Documents.Prerequisites
- An API key for your workspace
- The knowledge base ID, from Get Knowledge Bases
Request
curl --location 'https://api.weya.live/backend/api/knowledgeBase/687b1c2ab7c7d3f123456789' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "KnowledgeBase retrieved successfully",
"errorMessage": null,
"data": {
"_id": "687b1c2ab7c7d3f123456789",
"organizationId": "64e5f12345abcdef00000001",
"knowledgeBaseName": "Customer Support Knowledge Base",
"description": "Contains FAQs and support documentation.",
"bucketUrl": "https://…/",
"vectorDbCollection": "kb_customer_support_1a2b3c",
"status": "PENDING",
"createdAt": "2026-07-18T08:12:31.000Z",
"updatedAt": "2026-07-20T10:35:00.000Z"
}
}
Error Handling
Errors returnstatus: false, with the reason in errorMessage.
- 400 Bad Request –
knowledgeBaseIdisn’t a valid ID. - 401 Unauthorized – Missing or invalid API key.
- 404 Not Found –
KnowledgeBase not found: it doesn’t exist in your organization. - 429 Too Many Requests – More than 1,000 Knowledge Base requests in 15 minutes from your IP address.
- 500 Internal Server Error – Unexpected server error.
Was this page helpful?

