Skip to main content
GET
/
memory-stores
/
{store_id}
/
memories
/
{memory_id}
/
history
from hx import Client

client = Client()

history = client.memory.history(
    store_id="ms-your-store-id",
    memory_id="mem_abc123"
)
{
  "memory_id": "mem_abc123",
  "history": [
    {
      "id": "hist_001",
      "memory_id": "mem_abc123",
      "old_memory": null,
      "new_memory": "User's name is Alex",
      "event": "ADD",
      "timestamp": "2025-01-04T00:00:00Z"
    },
    {
      "id": "hist_002",
      "memory_id": "mem_abc123",
      "old_memory": "User's name is Alex",
      "new_memory": "User's name is Alexander (prefers Alex)",
      "event": "UPDATE",
      "timestamp": "2025-01-04T01:00:00Z"
    }
  ]
}
Get the change history for a memory.
store_id
string
required
Memory Store ID
memory_id
string
required
Memory ID
from hx import Client

client = Client()

history = client.memory.history(
    store_id="ms-your-store-id",
    memory_id="mem_abc123"
)
{
  "memory_id": "mem_abc123",
  "history": [
    {
      "id": "hist_001",
      "memory_id": "mem_abc123",
      "old_memory": null,
      "new_memory": "User's name is Alex",
      "event": "ADD",
      "timestamp": "2025-01-04T00:00:00Z"
    },
    {
      "id": "hist_002",
      "memory_id": "mem_abc123",
      "old_memory": "User's name is Alex",
      "new_memory": "User's name is Alexander (prefers Alex)",
      "event": "UPDATE",
      "timestamp": "2025-01-04T01:00:00Z"
    }
  ]
}