Skip to content

Interface: AsyncIngestionResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AsyncIngestionResponse

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

The HTTP 202 body of a single-document ingestion that the engine queued.

Sent by POST /api/v1/ingest/document?sync=false, POST /api/v1/ingest/markdown?sync=false (when the deployment runs a task queue) and POST /api/v1/ingest/rdf?sync=false. The wire keys are snake_case (session_id, document_id, status_url).

documentId is the session-tracking id of the document, not its document-registry id. The registry id (the one GET /api/v1/documents lists) appears as DocumentStatsDto.documentTermId in the session stats once the document completes.

documentId: string

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

Session-tracking id of the queued document (UUID).


sessionId: string

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

Session id to poll (UUID).


status: string

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

Status at enqueue time. The engine always sends "pending".


statusUrl: string

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

Path of the session resource to poll (/api/v1/ingest/sessions/<sessionId>).