---
title: "Get trace memory footprint"
method: GET
path: "/v1/projects/{projectSlug}/traces/{traceId}/memory"
tags: ["Traces"]
---

# Get trace memory footprint

`GET /v1/projects/{projectSlug}/traces/{traceId}/memory`

Returns the trace's memory footprint: per-record read, added, and removed token metrics plus totals, scoped to this trace.

## Path parameters

- `projectSlug` string, required — Project slug (human-readable identifier)
- `traceId` string, required — 32-character trace identifier.

## Response `200`

Trace memory footprint

- SessionMemorySummary
  - `records` MemoryRecordSummary[], required — Per-record read/write token footprint for the session (or a single trace).
    - `storeId` string, required — Store the record belongs to.
    - `recordId` string, required — Record the metrics are for.
    - `readTokens` integer, required — Tokens read from this record across the session's retrievals.
    - `tokensAdded` integer, required — Tokens the session added to this record (endpoint diff).
    - `tokensRemoved` integer, required — Tokens the session removed from this record (endpoint diff).
  - `total` object, required — Session-wide totals.
    - `readTokens` integer, required — Total tokens read across the session.
    - `tokensAdded` integer, required — Total tokens added across the session.
    - `tokensRemoved` integer, required — Total tokens removed across the session.
    - `writeRecords` integer, required — Number of records the session wrote, including zero-delta writes.

## Other responses

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

---

[API](https://skmtc.net/latitude-dev/apis/latitude.md) · [All operations](https://skmtc.net/latitude-dev/apis/latitude/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/latitude-dev/latitude/versions/6a8789c59a5c/schema)
