Skip to main content
Use POST /ns/{namespace}/document/batch to backfill exports, emails, messages, or other dated records.
Sort the source data oldest to newest, add date to every document.

Backfill in batches

Backfill dated content by setting date on each document, sorting the source records oldest to newest, and sending them in batches. Each request can contain up to 600 documents. Endpoint: POST /ns/{namespace}/document/batch
Batch results preserve input order. Inspect success, failed, and every item in results; a batch can contain successful and failed items together.

Optional: wait for processing to finish

Endpoint: GET /ns/{namespace}/document/{id} The batch endpoint returns after accepting the documents. If a later step depends on the documents being indexed, poll the returned document IDs until system.status is done. If that later step also needs the extracted memories, send the batch with dreaming: "instant"; under the default dynamic mode memory extraction is batched and can lag done by minutes. Each document reports system.dreamingStatus: "done" once its memories are ready.