---
title: "Get an Agent memory repo"
method: GET
path: "/api/agent-memory/{repo}"
tags: ["Agent Memory"]
---

# Get an Agent memory repo

`GET /api/agent-memory/{repo}`

## Request

- The document declares no server URL.
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Every file of the repo as of its latest revision, or as an earlier revision left it.

## Path parameters

- `repo` 'user' | 'project', required: user: the caller's own memory. project: the memory the whole project shares.

## Query parameters

- `revision` string: Read the repo as this revision left it, such as one listed in its history

## Response `200`

Response for status 200

- object
  - `repo` 'user' | 'project', required
  - `revision` integer, required: 0 before the first save
  - `files` object[], required: Ordered by path
    - `path` string, required: The file's path from the repo root, such as projects/payments.md
    - `contents` string, required

## Other responses

- `400`: Response for status 400
- `403`: Response for status 403
- `501`: Response for status 501

## Changes

- **2026-10-21** `a227d682eaa2`: 1 info
  - added the new optional `query` request parameter `revision`
- **2026-10-21** `54deed43546b`: 1 info
  - endpoint added

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

---

[API](https://skmtc.dev/sixb-ai/apis/sixb-api.md) - [All operations](https://skmtc.dev/sixb-ai/apis/sixb-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sixb-ai/apis/sixb-api/revisions/a227d682eaa2?raw)
