knowledge-base
Ingest documents (text, files, or mixed)
Changed onUnified document ingestion endpoint.
Accepts a multipart form with:
- manifest (required): JSON array describing each item
- files (optional): one or more file uploads, referenced by file_index in the manifest
Manifest format (JSON array):
[
{"type": "file", "file_index": 0, "title": "Report"},
{"type": "text", "title": "FAQ", "content": "What is..."},
{"type": "file", "file_index": 1, "title": "Old Report", "document_id": "uuid"}
]
post/v1/knowledge-base/knowledge-bases/{kb_id}/ingest
Request
- The document declares no server URL.
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
kb_idstring uuid required
Response
Successful Response
Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info