cURL
curl --request GET \ --url https://asteragents.com/api/kb/manage \ --header 'Authorization: Bearer <token>'
{ "success": true, "knowledgeBases": [ { "id": 1, "name": "Product Documentation", "description": "All product docs and guides", "embeddingModel": "openai:text-embedding-3-small", "embeddingDimensions": 1536, "extractionModel": null, "extractionSchema": null, "source": null, "trigger": null, "createdAt": "2024-01-15T10:30:00.000Z", "updatedAt": "2024-01-15T10:30:00.000Z", "userId": "user_2ABC123DEF", "fileCount": 12, "lastFileUploadedAt": "2024-02-01T14:00:00.000Z", "totalSize": 52428800, "status": "ready" } ] }
Retrieve all knowledge bases for the authenticated user’s organization.
Returns each knowledge base with file count, status, and configuration details.
JWT token from Clerk authentication.
Must be from a user with org:admin role.
org:admin
Successfully retrieved knowledge bases
Show child attributes