Knowledge base
Create document
Add knowledge from text, a URL or a file.
POST
https://app.elunos.ai/api/v1/knowledge/documentsFields
namestringPflichtDisplay name of the document.
source_typetext | url | filePflichtWhere the content comes from. Decides which of the following fields is needed.
content_textstringThe text itself, with source_type=text.
content_urlstringAddress to read in, with source_type=url.
filemultipartFile up to 20 MB, with source_type=file. PDF, DOCX, TXT, HTML, MD and EPUB.
folder_iduuidPlaces the document in a folder.
Example
curl -X POST https://app.elunos.ai/api/v1/knowledge/documents \\
-H "Authorization: Bearer np_xxxxxxxx" \\
-H "Content-Type: application/json" \\
-d '{
"name": "Opening hours",
"source_type": "text",
"content_text": "Mon to Fri 8am to 6pm"
}'Handover to the voice agents happens during the call itself. The response carries sync_status; on error the reason is in sync_error.