v6

latestOpenAPI 3.0.1raw.githubusercontent.com2026-08-0182128753.1 KB
Documents

Create Document by File

Creates a document in a knowledge base from an uploaded file. Common formats such as PDF, TXT, and DOCX are supported. Indexing runs asynchronously; track it with the returned batch ID via Get Document Indexing Status.

post/datasets/{dataset_id}/document/create-by-file

Path parameters

dataset_idstring uuid required

Knowledge base ID. From List Knowledge Bases.

Response

Document created successfully.

batchstring

Batch ID for tracking indexing progress.