Import a bank (async)
Changed onSubmit a transfer archive (produced by the export endpoint) for import. Runs as a background operation: facts are re-embedded with the target bank's embedding model and entities are re-resolved — no LLM extraction, so the import costs no tokens and invents no new facts.
Two modes. restore (default) writes a whole bank into target_bank_id, which must NOT already exist — it restores a bank rather than merging into one, and is how a bank is moved between instances or copied under a new id. merge folds an archive's documents into this bank, with document_conflict deciding what happens to ids that already exist (skip, replace, new-id).
The include flags narrow what is restored to a subset of what the archive holds; they cannot add what the producer did not export. Returns an operation_id; poll GET /v1/default/banks/{bank_id}/operations/{operation_id} for status and per-component counts. The operation is recorded against {bank_id} even in restore mode, because the target bank does not exist yet.
Request
- Base URLhttps://hindsight.vectorize.io (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Query parameters
restore (into a fresh bank) | merge (into this bank)
restore mode: the bank to create; defaults to the archive's source bank
merge mode: skip | replace | new-id
restore mode: carry the memories and everything backing them (default true)
restore mode: restore the bank's config overrides, directives and webhooks (default true)
restore mode: carry audit_log and llm_requests (default false)
Headers
Request body multipart/form-data
Response
Successful Response
Changes
- info
endpoint added
- info