cURL
curl --request POST \ --url https://api.trillet.ai/v1/api/knowledgebase \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --header 'x-workspace-id: <x-workspace-id>' \ --data ' { "name": "<string>", "description": "<string>" } '
{ "_id": "665a1b2c3d4e5f6a7b8c9d0e", "name": "Product Documentation", "description": "All product-related documentation and FAQs", "workspaceId": "664a1b2c3d4e5f6a7b8c9d0e", "files": [], "createdAt": "2024-06-01T09:00:00.000Z", "updatedAt": "2024-06-01T09:00:00.000Z" }
Create a new knowledge base in your workspace.