Skip to main content
POST
Index with real-time progress (NDJSON stream)

Headers

X-Memloom-Owner
string<uuid>

The owner this request acts for. Applies to every owner-scoped endpoint, reads as well as writes. Omit it and the daemon's own default owner answers (see GET /health), which is what a single-owner install has always used. A value that is not a uuid is refused with 400 rather than coerced.

Body

application/json

The body is of type object.

Response

200 - application/x-ndjson

NDJSON progress stream ending with a done (or error) event.

The response is of type string.

Example:

"{\"type\":\"item\",\"kind\":\"chunk\",\"id\":\"...\",\"label\":\"runbook.pdf › DATABASE FAILOVER\",\"index\":3,\"total\":46,\"entities\":[\"Postgres\"]}\n{\"type\":\"done\",\"indexed\":0,\"chunksIndexed\":46}\n"