v1

latestOpenAPI 3.0.32026-07-26870417.2 KB
knowledge-base

Create Document

Process and create document entries in the knowledge base. The document will be split into chunks for efficient retrieval.

post/knowledge-base/document/create

Request body

Example request

{
  "document": {
    "url": "https://example.com/document.pdf",
    "filename": "document.pdf"
  }
}

Response

201 Created

file_namestring

The filename of the document

document_idstring

The ID of the document

file_pathstring

The path of the document

chunks_countnumber

The number of chunks created for the document