Get a memory's history
curl --request GET \
--url https://api.tensorpro.ai/api/v1/memory/records/{record_id}/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tensorpro.ai/api/v1/memory/records/{record_id}/history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tensorpro.ai/api/v1/memory/records/{record_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.tensorpro.ai/api/v1/memory/records/{record_id}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.tensorpro.ai/api/v1/memory/records/{record_id}/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.tensorpro.ai/api/v1/memory/records/{record_id}/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tensorpro.ai/api/v1/memory/records/{record_id}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"versions": [
{
"id": "8f0d2c61-5b7e-4a39-9c1e-2d4f6a8b0e17",
"content_summary": "Sara manages the website project.",
"full_text": "Sara manages the website project.",
"provenance": "USER_STATED",
"domain": "factual",
"status": "replaced",
"created_at": "2026-11-10T04:43:25+00:00",
"project_id": null,
"session_id": "chat-42",
"source_id": null,
"supersedes": null,
"superseded_by": "1b3d5f7a-9c2e-4a6b-8d0f-2e4a6c8e0b1d",
"event_date": null,
"document_date": "2026-11-10T04:43:25+00:00"
},
{
"id": "1b3d5f7a-9c2e-4a6b-8d0f-2e4a6c8e0b1d",
"content_summary": "Tom manages the website project.",
"full_text": "Tom manages the website project.",
"provenance": "USER_CONFIRMED",
"domain": "factual",
"status": "current",
"created_at": "2026-11-11T09:12:44+00:00",
"project_id": null,
"session_id": "chat-42",
"source_id": null,
"supersedes": "8f0d2c61-5b7e-4a39-9c1e-2d4f6a8b0e17",
"superseded_by": null,
"event_date": null,
"document_date": "2026-11-10T04:43:25+00:00"
}
]
}
Manage memory
Get a memory's history
Get every version of a memory, oldest first, linked by edits, corrections and confirmations. Pass the ID of any version.
GET
/
api
/
v1
/
memory
/
records
/
{record_id}
/
history
Get a memory's history
curl --request GET \
--url https://api.tensorpro.ai/api/v1/memory/records/{record_id}/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tensorpro.ai/api/v1/memory/records/{record_id}/history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tensorpro.ai/api/v1/memory/records/{record_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.tensorpro.ai/api/v1/memory/records/{record_id}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.tensorpro.ai/api/v1/memory/records/{record_id}/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.tensorpro.ai/api/v1/memory/records/{record_id}/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tensorpro.ai/api/v1/memory/records/{record_id}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"versions": [
{
"id": "8f0d2c61-5b7e-4a39-9c1e-2d4f6a8b0e17",
"content_summary": "Sara manages the website project.",
"full_text": "Sara manages the website project.",
"provenance": "USER_STATED",
"domain": "factual",
"status": "replaced",
"created_at": "2026-11-10T04:43:25+00:00",
"project_id": null,
"session_id": "chat-42",
"source_id": null,
"supersedes": null,
"superseded_by": "1b3d5f7a-9c2e-4a6b-8d0f-2e4a6c8e0b1d",
"event_date": null,
"document_date": "2026-11-10T04:43:25+00:00"
},
{
"id": "1b3d5f7a-9c2e-4a6b-8d0f-2e4a6c8e0b1d",
"content_summary": "Tom manages the website project.",
"full_text": "Tom manages the website project.",
"provenance": "USER_CONFIRMED",
"domain": "factual",
"status": "current",
"created_at": "2026-11-11T09:12:44+00:00",
"project_id": null,
"session_id": "chat-42",
"source_id": null,
"supersedes": "8f0d2c61-5b7e-4a39-9c1e-2d4f6a8b0e17",
"superseded_by": null,
"event_date": null,
"document_date": "2026-11-10T04:43:25+00:00"
}
]
}
Use this endpoint to see how a memory changed over time: the original version and every edit, correction or confirmation since.
Each version has the same fields as Get a memory.
See Error handling.
What EDN does
- Finds every version linked to the ID you pass, older and newer.
- Returns them oldest first. The last one is the latest.
Required headers
| Header | Value | Description |
|---|---|---|
Authorization | Bearer YOUR_API_KEY | Your EDN API key. Create keys in the Console. See Authentication |
Request
| Parameter | Type | Description |
|---|---|---|
record_id | string | Identifier for any version of the memory, old or current |
curl "https://api.tensorpro.ai/api/v1/memory/records/8f0d2c61-5b7e-4a39-9c1e-2d4f6a8b0e17/history" \
-H "Authorization: Bearer $EDN_API_KEY"
import os
import requests
resp = requests.get(
"https://api.tensorpro.ai/api/v1/memory/records/8f0d2c61-5b7e-4a39-9c1e-2d4f6a8b0e17/history",
headers={"Authorization": f"Bearer {os.environ['EDN_API_KEY']}"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.tensorpro.ai/api/v1/memory/records/8f0d2c61-5b7e-4a39-9c1e-2d4f6a8b0e17/history", {
headers: {
Authorization: `Bearer ${process.env.EDN_API_KEY}`,
},
});
console.log(await resp.json());
Response
200 OK
{
"versions": [
{
"id": "8f0d2c61-5b7e-4a39-9c1e-2d4f6a8b0e17",
"content_summary": "Sara manages the website project.",
"full_text": "Sara manages the website project.",
"provenance": "USER_STATED",
"domain": "factual",
"status": "replaced",
"created_at": "2026-11-10T04:43:25+00:00",
"project_id": null,
"session_id": "chat-42",
"source_id": null,
"supersedes": null,
"superseded_by": "1b3d5f7a-9c2e-4a6b-8d0f-2e4a6c8e0b1d",
"event_date": null,
"document_date": "2026-11-10T04:43:25+00:00"
},
{
"id": "1b3d5f7a-9c2e-4a6b-8d0f-2e4a6c8e0b1d",
"content_summary": "Tom manages the website project.",
"full_text": "Tom manages the website project.",
"provenance": "USER_CONFIRMED",
"domain": "factual",
"status": "current",
"created_at": "2026-11-11T09:12:44+00:00",
"project_id": null,
"session_id": "chat-42",
"source_id": null,
"supersedes": "8f0d2c61-5b7e-4a39-9c1e-2d4f6a8b0e17",
"superseded_by": null,
"event_date": null,
"document_date": "2026-11-10T04:43:25+00:00"
}
]
}
| Field | Type | Description |
|---|---|---|
versions | array | Every version of the memory, oldest first |
versions[].status | string | current, replaced or deleted |
Important behavior
- Deleted versions are included, with
status: deleted, so the history stays complete.
Errors
| Status | Code | When |
|---|---|---|
401 | UNAUTHORIZED | The API key is missing, invalid or revoked |
404 | NOT_FOUND | The memory doesn’t exist or isn’t yours |
429 | RATE_LIMITED | Per-minute limit reached. Retry after Retry-After seconds |
500 | INTERNAL_ERROR | Something failed on EDN’s side. Retry later |
{
"versions": [
{
"id": "8f0d2c61-5b7e-4a39-9c1e-2d4f6a8b0e17",
"content_summary": "Sara manages the website project.",
"full_text": "Sara manages the website project.",
"provenance": "USER_STATED",
"domain": "factual",
"status": "replaced",
"created_at": "2026-11-10T04:43:25+00:00",
"project_id": null,
"session_id": "chat-42",
"source_id": null,
"supersedes": null,
"superseded_by": "1b3d5f7a-9c2e-4a6b-8d0f-2e4a6c8e0b1d",
"event_date": null,
"document_date": "2026-11-10T04:43:25+00:00"
},
{
"id": "1b3d5f7a-9c2e-4a6b-8d0f-2e4a6c8e0b1d",
"content_summary": "Tom manages the website project.",
"full_text": "Tom manages the website project.",
"provenance": "USER_CONFIRMED",
"domain": "factual",
"status": "current",
"created_at": "2026-11-11T09:12:44+00:00",
"project_id": null,
"session_id": "chat-42",
"source_id": null,
"supersedes": "8f0d2c61-5b7e-4a39-9c1e-2d4f6a8b0e17",
"superseded_by": null,
"event_date": null,
"document_date": "2026-11-10T04:43:25+00:00"
}
]
}
