cURL
curl --request POST \ --url https://api.trugen.ai/v1/knowledgebase/{id}/doc \ --header 'Content-Type: multipart/form-data' \ --header 'x-api-key: <api-key>' \ --form 'text=Sample knowledge base text or URL like https://docs.trugen.ai/' \ --form input='@example-file'
{ "added": 1, "message": "Content added successfully to existing Knowledge Base" }
Uploads additional content or a document to an existing Knowledge Base. Requires x-api-key authentication.
x-api-key
UUID of the Knowledge Base to which the content will be added
"d837afdc-f95f-4e4d-abe4-40894db22a02"
Text or URL content to be added to the Knowledge Base
"Sample knowledge base text or URL like https://docs.trugen.ai/"
Optional file upload (e.g., .pdf, .docx)
Content added successfully
1
"Content added successfully to existing Knowledge Base"