cURL
curl --request GET \ --url https://api.xpander.ai/v1/knowledge \ --header 'x-api-key: <api-key>'
{ "items": [ { "id": "<string>", "name": "<string>", "type": "managed", "organization_id": "<string>", "description": "<string>", "agent_id": "<string>", "total_documents": 0 } ], "total": 123, "page": 123, "per_page": 123, "total_pages": 123 }
Returns a paginated list of knowledge bases
Show Knowledge Base Object
curl -X GET -H "x-api-key: YOUR_API_KEY" \ "https://api.xpander.ai/v1/knowledge?page=1&per_page=5"
{ "items": [ { "id": "73dc30ca-bdbf-42f7-a39f-93aff4f8522e", "name": "PeopleDB", "description": "Dataset contains data about people and their phone number", "type": "managed", "organization_id": "91fbe9bc-REDACTED", "agent_id": null, "total_documents": 0 }, { "id": "e21563bd-7c02-4f8f-9520-8c854f5c2ee6", "name": "Docs", "description": "Docs", "type": "managed", "organization_id": "91fbe9bc-REDACTED", "agent_id": null, "total_documents": 278 }, { "id": "27a824b5-3a31-461b-951d-81261da3217b", "name": "Spreadsheets", "description": "Spreadsheets", "type": "managed", "organization_id": "91fbe9bc-REDACTED", "agent_id": null, "total_documents": 2 } ], "total": 32, "page": 1, "per_page": 5, "total_pages": 7 }
API Key for authentication
Page number (starting from 1)
x >= 1
Items per page (max 50)
1 <= x <= 50
Successful Response
Show child attributes
Was this page helpful?