Get a memory
curl --request GET \
--url https://api.tensorpro.ai/api/v1/memory/records/{record_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tensorpro.ai/api/v1/memory/records/{record_id}"
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}', 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}",
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}"
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}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tensorpro.ai/api/v1/memory/records/{record_id}")
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{
"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": "current",
"created_at": "2026-11-10T04:43:25+00:00",
"project_id": null,
"session_id": "chat-42",
"source_id": null,
"supersedes": null,
"superseded_by": null,
"event_date": null,
"document_date": "2026-11-10T04:43:25+00:00"
}
Manage memory
Get a memory
Get one memory with its full text, source and status. A replaced memory is still returned, with superseded_by pointing to the newer version.
GET
/
api
/
v1
/
memory
/
records
/
{record_id}
Get a memory
curl --request GET \
--url https://api.tensorpro.ai/api/v1/memory/records/{record_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tensorpro.ai/api/v1/memory/records/{record_id}"
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}', 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}",
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}"
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}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tensorpro.ai/api/v1/memory/records/{record_id}")
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{
"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": "current",
"created_at": "2026-11-10T04:43:25+00:00",
"project_id": null,
"session_id": "chat-42",
"source_id": null,
"supersedes": null,
"superseded_by": null,
"event_date": null,
"document_date": "2026-11-10T04:43:25+00:00"
}
Use this endpoint to get one memory in full: its complete text, where it came from, and whether it’s still the current version.
See Error handling.
What EDN does
- Returns the memory with its full text and details.
- Also returns memories that were replaced, with
superseded_bypointing to the newer version.
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 the memory, as returned when it was saved |
curl "https://api.tensorpro.ai/api/v1/memory/records/8f0d2c61-5b7e-4a39-9c1e-2d4f6a8b0e17" \
-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",
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", {
headers: {
Authorization: `Bearer ${process.env.EDN_API_KEY}`,
},
});
console.log(await resp.json());
Response
200 OK
{
"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": "current",
"created_at": "2026-11-10T04:43:25+00:00",
"project_id": null,
"session_id": "chat-42",
"source_id": null,
"supersedes": null,
"superseded_by": null,
"event_date": null,
"document_date": "2026-11-10T04:43:25+00:00"
}
| Field | Type | Description |
|---|---|---|
id | string | Identifier for the memory |
content_summary | string | What the memory says, as used in SIPs (up to 500 characters) |
full_text | string | The memory’s complete text. For a ROUND memory, the full exchange |
provenance | string | Where the memory came from, such as USER_STATED or DOCUMENT_VERIFIED. See Provenance |
domain | string | The memory’s category: factual, technical, professional-context or communication-style |
status | string | current (the latest version, used in SIPs), replaced (a newer version took its place) or deleted (only in history) |
created_at | string (date-time) | When this version was saved |
project_id | string or null | The project the memory belongs to, or null for general memory |
session_id | string or null | The session the memory was saved in |
source_id | string or null | The project document the memory came from, or null |
supersedes | string or null | Identifier for the earlier version this one replaced, or null |
superseded_by | string or null | Identifier for the newer version that replaced this one, or null |
event_date | string (date-time) or null | When the event the memory describes happened, if known |
document_date | string (date-time) or null | When the information was recorded |
Important behavior
- Deleted memories return
404. Use Get a memory’s history to see them.
Errors
| Status | Code | When |
|---|---|---|
401 | UNAUTHORIZED | The API key is missing, invalid or revoked |
404 | NOT_FOUND | The memory doesn’t exist, was deleted, 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 |
{
"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": "current",
"created_at": "2026-11-10T04:43:25+00:00",
"project_id": null,
"session_id": "chat-42",
"source_id": null,
"supersedes": null,
"superseded_by": null,
"event_date": null,
"document_date": "2026-11-10T04:43:25+00:00"
}
Authorizations
Path Parameters
Response
Successful Response
