Knowledge base

Create document

Add knowledge from text, a URL or a file.

POSThttps://app.elunos.ai/api/v1/knowledge/documents

Fields

namestringPflicht

Display name of the document.

source_typetext | url | filePflicht

Where the content comes from. Decides which of the following fields is needed.

content_textstring

The text itself, with source_type=text.

content_urlstring

Address to read in, with source_type=url.

filemultipart

File up to 20 MB, with source_type=file. PDF, DOCX, TXT, HTML, MD and EPUB.

folder_iduuid

Places 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.