---
title: "Get a memory record"
method: GET
path: "/v1/projects/{projectSlug}/memory/record"
tags: ["Memory"]
---

# Get a memory record

`GET /v1/projects/{projectSlug}/memory/record`

Returns one record's current body plus its mutating version history (newest first), each version carrying the authoring span/trace/session/user and per-version token deltas.

## Path parameters

- `projectSlug` string, required — Project slug (human-readable identifier)

## Query parameters

- `storeId` string, required — Store identifier (`gen_ai.memory.store.id`). Pass an empty string to address the unattributed ("") store.
- `recordId` string, required — Record identifier (`gen_ai.memory.record.id`). Pass an empty string to address the unnamed record.

## Response `200`

Memory record detail

- MemoryRecordDetail
  - `body` string, nullable, required — The record's current body. `null` when the record is deleted or its body was not captured.
  - `tokenCount` integer, required — Tokens in the current body.
  - `versions` MemoryRecordVersion[], required — The record's mutating version chain, newest first.
    - `changeKind` 'add' | 'update' | 'remove' | 'read' | 'store_create' | 'store_delete', required — Kind of memory operation: `add`/`update`/`remove` (mutations), `read` (retrieval), or `store_create`/`store_delete` (store lifecycle).
    - `tokenCount` integer, required — Tokens in the body produced by this version.
    - `tokensAdded` integer, required — Tokens added by this version versus its predecessor.
    - `tokensRemoved` integer, required — Tokens removed by this version versus its predecessor.
    - `spanId` string, required — Span that authored this version.
    - `traceId` string, required — Trace the authoring span belongs to.
    - `sessionId` string, required — Session the authoring trace belongs to.
    - `userId` string, required — End-user attributed to the authoring span. Empty when none.
    - `endTime` string, required — ISO-8601 timestamp of the authoring span's end (the version ordering key).

## Other responses

- `400` — Validation error
- `401` — Unauthorized
- `404` — Not found

## Changes

- **2026-07-22** `7fedfdd5ae66` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/latitude-dev/apis/latitude/changes/v1/projects/:projectSlug/memory/record/get.md)

---

[API](https://skmtc.dev/latitude-dev/apis/latitude.md) · [All operations](https://skmtc.dev/latitude-dev/apis/latitude/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/latitude-dev/latitude/revisions/a0bf72a85607/schema)
