cURL
curl --request POST \ --url https://api.trillet.ai/v1/api/knowledgebase/{id}/files \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --header 'x-workspace-id: <x-workspace-id>' \ --data '{}'
{ "success": true, "file": { "name": "product-guide.pdf", "size": 1048576, "type": "application/pdf" } }
Upload a file to an existing knowledge base. Supports PDF, TXT, DOCX, MD, CSV, and JSON files up to 50MB.
multipart/form-data