cURL
curl --request GET \ --url https://api.xpander.ai/v1/knowledge/{kb_id}/documents \ --header 'x-api-key: <api-key>'
{ "items": [ { "document_url": "<string>", "kb_id": "<string>", "id": "<string>", "name": "<string>" } ], "total": 123, "page": 123, "per_page": 123, "total_pages": 123 }
Get paginated list of documents in a knowledge base
Show Document Object
curl -X GET -H "x-api-key: YOUR_API_KEY" \ "https://api.xpander.ai/v1/knowledge/e21563bd-7c02-4f8f-9520-8c854f5c2ee6/documents?page=1&per_page=10"
{ "items": [ { "kb_id": "e21563bd-7c02-4f8f-9520-8c854f5c2ee6", "id": "c7e44aac-e347-481d-bef8-8f230adf1a74", "name": null, "document_url": "https://svc-sb.app.xpander.ai/storage/v1/object/public/kb_files/e21563bd-7c02-4f8f-9520-8c854f5c2ee6/1753618104807-ztna-vs-vpn-side-by-side-comparison.md" }, { "kb_id": "e21563bd-7c02-4f8f-9520-8c854f5c2ee6", "id": "d297e31f-ff36-457c-a2e7-254965c366fc", "name": null, "document_url": "https://svc-sb.app.xpander.ai/storage/v1/object/public/kb_files/e21563bd-7c02-4f8f-9520-8c854f5c2ee6/1753618103245-whitelisting-docs-client-processes-1.md" } ], "total": 278, "page": 1, "per_page": 10, "total_pages": 28 }
document_url
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?