API Reference
Inspect memory lineage, direct relationships, and audit metadata
GET
/
api
/
v1
/
memories
/
{id}
/
history
Inspect memory lineage, direct relationships, and audit metadata
curl --request GET \
--url https://3ngram-server-production.up.railway.app/api/v1/memories/{id}/history \
--header 'X-API-Key: <api-key>'{
"auditEvents": [
{
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payloadMetadata": {
"byteLength": 4503599627370495,
"present": true
}
}
],
"directRelationships": {
"predecessors": [
{
"edge": {
"createdAt": "2023-11-07T05:31:56Z",
"fromId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"memory": {
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isCurrent": true,
"project": "<string>",
"recordedAt": "2023-11-07T05:31:56Z",
"scope": "<string>",
"topic": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z"
}
}
],
"successors": [
{
"edge": {
"createdAt": "2023-11-07T05:31:56Z",
"fromId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"memory": {
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isCurrent": true,
"project": "<string>",
"recordedAt": "2023-11-07T05:31:56Z",
"scope": "<string>",
"topic": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z"
}
}
],
"truncated": true
},
"eventsTruncated": true,
"lineage": {
"edges": [
{
"createdAt": "2023-11-07T05:31:56Z",
"fromId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"nodes": [
{
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isCurrent": true,
"project": "<string>",
"recordedAt": "2023-11-07T05:31:56Z",
"scope": "<string>",
"topic": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z"
}
],
"truncated": true
},
"memory": {
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isCurrent": true,
"project": "<string>",
"recordedAt": "2023-11-07T05:31:56Z",
"scope": "<string>",
"topic": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z"
}
}Authorizations
apiKeysessionBearer
Path Parameters
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Inspect a single memory, including content
Previous
Transition the commitment riding a memory (mirrors the MCP resolve tool)
Next
⌘I
Inspect memory lineage, direct relationships, and audit metadata
curl --request GET \
--url https://3ngram-server-production.up.railway.app/api/v1/memories/{id}/history \
--header 'X-API-Key: <api-key>'{
"auditEvents": [
{
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payloadMetadata": {
"byteLength": 4503599627370495,
"present": true
}
}
],
"directRelationships": {
"predecessors": [
{
"edge": {
"createdAt": "2023-11-07T05:31:56Z",
"fromId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"memory": {
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isCurrent": true,
"project": "<string>",
"recordedAt": "2023-11-07T05:31:56Z",
"scope": "<string>",
"topic": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z"
}
}
],
"successors": [
{
"edge": {
"createdAt": "2023-11-07T05:31:56Z",
"fromId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"memory": {
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isCurrent": true,
"project": "<string>",
"recordedAt": "2023-11-07T05:31:56Z",
"scope": "<string>",
"topic": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z"
}
}
],
"truncated": true
},
"eventsTruncated": true,
"lineage": {
"edges": [
{
"createdAt": "2023-11-07T05:31:56Z",
"fromId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"nodes": [
{
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isCurrent": true,
"project": "<string>",
"recordedAt": "2023-11-07T05:31:56Z",
"scope": "<string>",
"topic": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z"
}
],
"truncated": true
},
"memory": {
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isCurrent": true,
"project": "<string>",
"recordedAt": "2023-11-07T05:31:56Z",
"scope": "<string>",
"topic": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z"
}
}