Import many facts at once
Up to 500 facts per call, as facts or as text with one fact per line (a ChatGPT or Claude memory list pasted as it is). Stored in one transaction with origin user, tagged imported and the source, with source_ref import:. Facts already stored are skipped. Found by their words at once and by meaning within minutes.
AuthorizationBearer <token>Your space key (om_...). Get one with POST /v1/connect.
application/json- body
facts?array<>Up to 500 facts. Send facts or text.
items <= 500text?stringOne fact per line, e.g. a ChatGPT or Claude memory list pasted as it is. Bullets and numbering are stripped; blank lines and # headings are skipped.
length <= 200000subject?stringSubject for facts from text (default none).
length <= 200source?stringWhere the facts came from, e.g. chatgpt. Tagged on every fact, with source_ref import:.
^[a-z0-9][a-z0-9_.-]{0,39}$"import"Imported
application/json- response
created*integerFacts stored.
skipped*integerFacts already stored (same subject and text), or repeated in the import.
ids*array<string>Ids of the facts stored.
next*stringcurl -X POST 'https://api.openmemory.sh/v1/memories/import' \ -H 'Content-Type: application/json' \ -d '{}'{ "created": 0, "skipped": 0, "ids": [ "string" ], "next": "string"}Get one fact GET
Previous Page
Recall facts by words, meaning, subject, tier, or tag GET
With q, finds facts that share its words (accent- and case-insensitive, prefix matching) or its meaning, best first. Meaning search falls back to words only when it is off or over its daily budget; `search` says what ran. A new or changed fact takes a few minutes to become findable by meaning, and `search.indexing` counts the ones that may not be yet. A q with no letters or digits finds nothing. Without q, lists every stored fact, pinned and core first, with `total` and `next_cursor` for the next page. Listing everything does not count as a recall.