Request Body
Display name for the knowledge base
Optional description of the knowledge base purpose
Response
Unique identifier for the knowledge base (UUID)
Display name of the knowledge base
Description of the knowledge base (nullable)
Knowledge base type: managed
UUID of the organization that owns this knowledge base
Associated agent ID (nullable)
Number of documents in the knowledge base (initially 0)
Example Request
curl -X POST -H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"API Test KB","description":"Knowledge base for API testing"}' \
https://api.xpander.ai/v1/knowledge
Example Response
{
"id": "4be18afd-ccbd-4092-8686-75e9df2a1bec",
"name": "API Test KB",
"description": "Knowledge base for API testing",
"type": "managed",
"organization_id": "91fbe9bc-35b3-41e8-b59d-922fb5a0f031",
"agent_id": null,
"total_documents": 0
}
API Key for authentication
KB name specified by the user
KB description specified by the user
Represents a Knowledge Base item.
Attributes:
id (str): KB unique identifier.
name (str): KB name specified by the user.
description (str): KB description specified by the user.
type (KnowledgeBaseType): KB type, either managed or external.
organization_id (str): Organization ID associated with the KB.
total_documents (int): Total count of embedded documents. Defaults to 0.
KB name specified by the user
KB type, managed / external
Available options:
managed,
external
KB description specified by the user
Total count of embedded documents