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

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"