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
}
Available options:
managed,
external