Memory History
curl --request GET \
--url https://api.memoclaw.com/v1/memories/{id}/historyimport requests
url = "https://api.memoclaw.com/v1/memories/{id}/history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.memoclaw.com/v1/memories/{id}/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.memoclaw.com/v1/memories/{id}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.memoclaw.com/v1/memories/{id}/history"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.memoclaw.com/v1/memories/{id}/history")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.memoclaw.com/v1/memories/{id}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"history": [
{
"history[].id": "<string>",
"history[].memory_id": "<string>",
"history[].changes": {},
"history[].created_at": "<string>"
}
]
}API Reference
Memory History
GET /v1/memories/:id/history — Get the change history for a memory.
GET
/
v1
/
memories
/
{id}
/
history
Memory History
curl --request GET \
--url https://api.memoclaw.com/v1/memories/{id}/historyimport requests
url = "https://api.memoclaw.com/v1/memories/{id}/history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.memoclaw.com/v1/memories/{id}/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.memoclaw.com/v1/memories/{id}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.memoclaw.com/v1/memories/{id}/history"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.memoclaw.com/v1/memories/{id}/history")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.memoclaw.com/v1/memories/{id}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"history": [
{
"history[].id": "<string>",
"history[].memory_id": "<string>",
"history[].changes": {},
"history[].created_at": "<string>"
}
]
}
Price: FREE
Retrieve the full change history for a memory. Every update (content, importance, metadata, etc.) is tracked as a history entry.
Path Parameters
UUID of the memory.
Response (200)
Array of history entries, ordered by creation time (newest first).
Errors
| Status | Description |
|---|---|
| 404 | Memory not found, deleted, or belongs to another wallet. |
| 422 | Invalid UUID format. |
Example
curl https://api.memoclaw.com/v1/memories/550e8400-e29b-41d4-a716-446655440000/history
const response = await fetch(
"https://api.memoclaw.com/v1/memories/550e8400-e29b-41d4-a716-446655440000/history"
);
const data = await response.json();
from memoclaw import MemoClaw
client = MemoClaw()
history = client.get_history("550e8400-e29b-41d4-a716-446655440000")
for entry in history:
print(f"{entry.created_at}: {entry.changes}")
const history = await client.getHistory("550e8400-e29b-41d4-a716-446655440000");
for (const entry of history) {
console.log(`${entry.created_at}: ${JSON.stringify(entry.changes)}`);
}
Response
{
"history": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"memory_id": "550e8400-e29b-41d4-a716-446655440000",
"changes": {
"importance": 0.95,
"content": "User prefers 2-space indentation (not tabs)"
},
"created_at": "2026-02-11T15:30:00Z"
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"memory_id": "550e8400-e29b-41d4-a716-446655440000",
"changes": {
"metadata": { "tags": ["preferences", "code-style"] }
},
"created_at": "2026-02-10T12:00:00Z"
}
]
}
History is only created when a memory is updated via
PATCH /v1/memories/:id. The initial store does not create a history entry.⌘I