openmemory
Docs
Memories

Import many facts at once

POST
/v1/memories/import

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.

Authorization

headerAuthorizationBearer <token>

Your space key (om_...). Get one with POST /v1/connect.

Request Body

application/json
  1. body
facts?array<>

Up to 500 facts. Send facts or text.

Itemsitems <= 500
text?string

One 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.

Lengthlength <= 200000
subject?string

Subject for facts from text (default none).

Lengthlength <= 200
source?string

Where the facts came from, e.g. chatgpt. Tagged on every fact, with source_ref import:.

Match^[a-z0-9][a-z0-9_.-]{0,39}$
Default"import"

Response Body

Imported

application/json
  1. response
created*integer

Facts stored.

skipped*integer

Facts already stored (same subject and text), or repeated in the import.

ids*array<string>

Ids of the facts stored.

next*string
Example Request
curl -X POST 'https://api.openmemory.sh/v1/memories/import' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created": 0,  "skipped": 0,  "ids": [    "string"  ],  "next": "string"}