Skip to main content
GET
/
ai
/
knowledge-bases
/
{kb_id}
Get knowledge base by ID
curl --request GET \
  --url https://api.wacht.dev/ai/knowledge-bases/{kb_id} \
  --header 'Authorization: <api-key>'
{
  "id": "1234567890123456789",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z",
  "deployment_id": "9876543210987654321",
  "name": "Product Documentation",
  "description": "Knowledge base for product docs",
  "configuration": {},
  "documents_count": 15,
  "total_size": 5242880
}

Authorizations

Authorization
string
header
required

API key authentication (format: Bearer {api_key})

Path Parameters

kb_id
string
required

Knowledge Base ID

Response

Knowledge base found

id
string
Example:

"1234567890123456789"

created_at
string<date-time>
Example:

"2024-01-15T10:30:00Z"

updated_at
string<date-time>
Example:

"2024-01-15T10:30:00Z"

deployment_id
string
Example:

"9876543210987654321"

name
string
Example:

"Product Documentation"

description
string | null
Example:

"Knowledge base for product docs"

configuration
object

Knowledge base configuration

documents_count
integer

Number of documents in the knowledge base

Example:

15

total_size
integer

Total size of all documents in bytes

Example:

5242880