Skip to content

Interface: IngestDocumentRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / IngestDocumentRequest

Defined in: src/types/ingestion.ts:1081

Request to ingest a single document.

Tenant ID is provided via the X-Tenant-Id header.

document: DocumentSource

Defined in: src/types/ingestion.ts:1083

Document source: base64, URL, or a retained original (stored).


optional documentType?: DocumentType | null

Defined in: src/types/ingestion.ts:1085

Document type hint (auto-detected if not provided).


optional ingestionConfig?: IngestionConfigDto | null

Defined in: src/types/ingestion.ts:1087

Markdown ingestion configuration (passed through to markdown pipeline).


optional ocrConfig?: OcrConfigDto | null

Defined in: src/types/ingestion.ts:1089

OCR/parsing configuration.


ownerId: string

Defined in: src/types/ingestion.ts:1091

Owner ID (user who owns the ingested data, UUID).


optional parseOnly?: boolean

Defined in: src/types/ingestion.ts:1098

Parse the document to Markdown and return it without creating any Psi-term. The engine answers 200 with no session, whatever sync is.

false