openmemory
Docs
Memories

Remember from a conversation: submit your model's facts

POST
/v1/memories/extract/result

Stores the facts in one transaction. A fact with replaces hides the older fact right away; the next dream removes it, and until then PATCH expires_at to null brings it back. Pinned facts are never replaced, and only a fact the person stated can replace another fact the person stated.

Authorization

headerAuthorizationBearer <token>

Your space key (om_...). Create one with POST /v1/spaces.

Request Body

application/json
  1. body
facts*array<>
Itemsitems <= 20

Response Body

What was stored

application/json
  1. response
stored*array<>
skipped*array<string>
Example Request
curl -X POST 'https://api.openmemory.sh/v1/memories/extract/result' \  -H 'Content-Type: application/json' \  -d '{  "facts": [    {      "text": "string"    }  ]}'
Example Response
{  "stored": [    {      "memory": {        "id": "string",        "subject": "string",        "text": "string",        "tier": "core",        "tags": [          "string"        ],        "source_ref": "string",        "pinned": true,        "origin": "user",        "expires_at": "string",        "recall_count": 0,        "last_recalled_at": "string",        "created_at": "string",        "updated_at": "string",        "match": "keyword"      },      "created": true,      "replaces": "string"    }  ],  "skipped": [    "string"  ]}