Skip to main content
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

X-API-Key
string
header
required

Path Parameters

id
string<uuid>
required
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)$

Response

200 - application/json

Success

auditEvents
object[]
required
directRelationships
object
required
eventsTruncated
boolean
required
lineage
object
required
memory
object
required