Skip to main content

Endpoint

GET /v1/memory/:id/history
Returns all versions of a memory, ordered newest-first. Every PUT update creates a new version — this endpoint provides the complete version timeline.

Path Parameters

ParamDescription
idAny version’s UUID for this memory

Response (200)

{
  "key": "facts/project-stack",
  "type": "semantic",
  "totalVersions": 3,
  "versions": [
    {
      "id": "def-789",
      "version": 3,
      "isLatest": true,
      "sizeBytes": 64,
      "createdAt": "2026-03-25T10:00:00Z"
    },
    {
      "id": "def-456",
      "version": 2,
      "isLatest": false,
      "sizeBytes": 48,
      "createdAt": "2026-03-24T10:00:00Z"
    },
    {
      "id": "def-123",
      "version": 1,
      "isLatest": false,
      "sizeBytes": 42,
      "createdAt": "2026-03-23T10:00:00Z"
    }
  ]
}

Fields

FieldTypeDescription
keystringMemory key
typestringMemory type
totalVersionsnumberTotal number of versions
versionsarrayAll versions, newest first
versions[].idstringUUID of this version
versions[].versionnumberVersion number
versions[].isLatestbooleanWhether this is the current version
versions[].sizeBytesnumberSize of this version’s blob
versions[].createdAtstringWhen this version was created
Use GET /v1/memory/:id with any version’s UUID to retrieve a specific version’s full content.

Errors

StatusReason
404Memory not found