---
title: "Every chunk row of one memory in chunkIndex order, with a chunk-integrity check (debug/admin). Does not count as an access"
method: GET
path: "/api/memory/chunks"
tags: ["Memory"]
---

# Every chunk row of one memory in chunkIndex order, with a chunk-integrity check (debug/admin). Does not count as an access

`GET /api/memory/chunks`

## Request

- Base URL: `http://localhost:3013`
- URL: `http://localhost:3013/api/memory/chunks`
- Auth: HTTP bearer

Visibility matches the memory list: an agent other than the lead gets 404 for another agent's agent-scope memory.

## Query parameters

- `memoryId` string, uuid: Any chunk row of the memory.
- `key` string
- `scope` 'agent' | 'swarm'
- `agentId` string: Owner agent id; pass an empty string for rows without one.

## Response `200`

Chunk rows and integrity findings

- object
  - `key` string, nullable, required
  - `scope` 'agent' | 'swarm', required
  - `agentId` string, nullable, required
  - `chunks` object[], required
    - `id` string, required
    - `agentId` string, nullable, required
    - `scope` 'agent' | 'swarm', required
    - `key` string, nullable, required
    - `name` string, required
    - `content` string, required
    - `source` 'manual' | 'file_index' | 'session_summary' | 'task_completion', required
    - `sourceTaskId` string, nullable, required
    - `sourcePath` string, nullable, required
    - `chunkIndex` number, required
    - `totalChunks` number, required
    - `tags` string[], required
    - `createdAt` string, required
    - `updatedAt` string, nullable, required
    - `accessedAt` string, required
    - `expiresAt` string, nullable, required
    - `accessCount` number, required
    - `embeddingModel` string, nullable, required
    - `rating` number, required
    - `alpha` number, required
    - `beta` number, required
    - `version` number, required
    - `estTokens` number, required
  - `estTokens` number, required
  - `integrity` object, required
    - `ok` boolean, required
    - `expectedChunks` number, required
    - `presentIndexes` number[], required
    - `missingIndexes` number[], required
    - `duplicateIndexes` number[], required
    - `conflictingTotals` number[], required
    - `outOfRangeIds` string[], required
    - `issues` string[], required

## Other responses

- `400`: Validation error
- `404`: Memory not found

## Changes

- **2026-10-04** `6e004b7ce47e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/memory/chunks/get.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) - [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/7e4c7198192a?raw)
