Retrieve an entity
GET/v1/entities/{id}
One entity from the knowledge graph, with its recorded values, its relationships and its memories.
One entity from the knowledge graph (a person, a company, a project, a commitment), with the values recorded against it, its relationships with both ends named (ended ones included and marked), and its memories. Entity ids appear on memories as subject_entity_id and entity_ids. An entity this key cannot read answers exactly as one that does not exist.
Example
Against https://platform.memtro.com, with your key in MEMTRO_API_KEY.
curl "https://platform.memtro.com/v1/entities/a83e…?memories=5" \
-H "Authorization: Bearer $MEMTRO_API_KEY"
import os, requests
r = requests.get(
"https://platform.memtro.com/v1/entities/a83e…",
headers={"Authorization": f"Bearer {os.environ['MEMTRO_API_KEY']}"},
params={"memories": 5},
)
r.raise_for_status()
print(r.json())
const res = await fetch("https://platform.memtro.com/v1/entities/a83e…?memories=5", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.MEMTRO_API_KEY}` },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
console.log(await res.json());
Shortened.
{
"object": "entity",
"id": "a83e…",
"type": "person",
"name": "Priya Shah",
"summary": "Engineering lead, billing.",
"card": "…",
"card_at": "2026-11-11T02:10:00.000Z",
"scope": "shared",
"aliases": ["Priya"],
"external_ids": { "email": "priya@…" },
"properties": {},
"created_at": "2026-06-02T09:00:00.000Z",
"updated_at": "2026-11-03T10:14:22.000Z",
"values": [],
"relationships": [
{ "id": "e51a…", "from": "a83e…", "to": "0c2d…", "relation": "owns", "since": "2026-11-03", "until": null, "direction": "out", "other": { "id": "0c2d…", "name": "Billing migration", "type": "project" } }
],
"memories": [{ "object": "memory", "id": "6f1c…", "content": "Priya Shah owns the billing migration (BIL-142) from 3 November 2026.", … }]
}
Authentication
An API key, as Authorization: Bearer or x-api-key.
- Every reply, errors included, carries
x-request-idandrequest-idheaders with the same id, startingreq-. Quote it to support. - Browsers may call it from any origin: it answers CORS preflights and allows the
Authorization,x-api-keyand Anthropic version headers.
Path parameters
idstringRequiredThe entity's id.
Query parameters
memoriesintegerOptionalHow many of its memories to include, at most 100 (read like
limiton List and search memories). Not a page.
Response
200application/json
The entity.
object"entity"OptionalAlways
entity.idstringOptionalThe entity's id.
typestringOptionalperson,company,projectand so on.namestringOptionalIts name.
summarystring or nullOptionalA short description.
cardstring or nullOptionalA longer description written from its own memories, where there is enough to write from.
card_atstring or nullOptionalWhen the card was written.
scopestringOptionalWho it belongs to.
aliasesarray of stringsOptionalOther names it goes by.
external_idsobjectOptionalIts ids in the systems it came from, such as a Xero contact id or an email address.
propertiesobjectOptionalFurther properties.
created_at, updated_atstringOptionalWhen it was first and last recorded.
valuesarray of objectsOptionalValues recorded against it ("ARR = 48,000 GBP since 2026-01-01"), up to 60.
8 fields of
valuesobject"entity.value"OptionalAlways
entity.value.key, value, unitstringOptionalWhat, the stated value, and its unit (
unitmay be null).numbernumber or nullOptionalThe value parsed as a number, if it parsed.
datestring or nullOptionalThe value parsed as a date, if it parsed.
valid_from, valid_tostring or nullOptionalThe period it holds for.
confidencenumberOptionalHow sure.
source, memory_idstring or nullOptionalWhere it came from.
updated_atstringOptionalWhen it was last recorded.
relationshipsarray of objectsOptionalIts relationships, up to 80.
7 fields of
relationshipsidstringOptionalThe relationship's id.
from, tostringOptionalThe entity ids at each end.
relationstringOptionalWhat the relationship is.
since, untilstring or nullOptionalDates,
YYYY-MM-DD.endedtrueOptionalPresent when the relationship has ended.
directionstringOptionalWhether this entity is the
from(out) or thetoend.otherobjectOptionalThe other end:
id,name,type.
memoriesarray of objectsOptionalIts memories, as in Retrieve a memory: those still current first, then the most important, then the newest.
Errors
In the OpenAI envelope, {"error": {"message", "type", "param", "code"}}. What each code means and what to do about it is in the error catalogue.
| Status | Code | When |
|---|---|---|
| 401 | invalid_api_key | The key is missing, malformed, revoked or expired. |
| 402 | subscription_inactive | The organisation has no active subscription. |
| 404 | not_found | No such entity, or not one this key can read. |