> ## Documentation Index
> Fetch the complete documentation index at: https://docs.albus.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# List a group's memories

> Lists the memories of one memory group, newest first: both the memories agents currently read and those a later memory has replaced. A group nothing has been remembered in yet is an empty list, not an error.

Page with `after` and `limit`: pass the response's `next_cursor` as the next request's `after`, and keep requesting while `next_cursor` is present — you have reached the end when it is absent.




## OpenAPI

````yaml /openapi/openapi.yaml get /memories
openapi: 3.0.3
info:
  title: Albus API
  description: Albus service REST API
  version: 1.0.0
servers:
  - url: https://albus.sh/api
    description: Production server
  - url: http://localhost:8080
    description: Local development server
security:
  - bearerAuth: []
  - apiKey: []
tags:
  - name: Agents
    description: Inspect the agents that have run in your organization.
  - name: Auth
    description: Identify the authenticated user.
  - name: Health
    description: Check service availability.
  - name: Memories
    description: Read and delete what your agents remember.
  - name: Models
    description: Discover the models available to run agents on.
  - name: Secrets
    description: Manage secrets available to agent sessions.
  - name: Sessions
    description: Run and inspect agent sessions.
  - name: Tokens
    description: Manage organization API keys.
  - name: Traces
    description: Find your agent invocations and read what they did.
paths:
  /memories:
    get:
      tags:
        - Memories
      summary: List a group's memories
      description: >
        Lists the memories of one memory group, newest first: both the memories
        agents currently read and those a later memory has replaced. A group
        nothing has been remembered in yet is an empty list, not an error.


        Page with `after` and `limit`: pass the response's `next_cursor` as the
        next request's `after`, and keep requesting while `next_cursor` is
        present — you have reached the end when it is absent.
      operationId: listMemories
      parameters:
        - $ref: '#/components/parameters/MemoryGroup'
        - $ref: '#/components/parameters/AfterCursor'
        - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListMemoriesResponse'
        '400':
          description: Invalid group or cursor
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrBadRequest'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrUnauthorized'
      security:
        - bearerAuth: []
        - apiKey: []
components:
  parameters:
    MemoryGroup:
      name: group
      in: query
      required: true
      description: >
        The memory group to read or delete — the `memory.group` value the agents
        sharing those memories run with.
      schema:
        type: string
        minLength: 1
        maxLength: 256
    AfterCursor:
      name: after
      in: query
      required: false
      description: >
        Opaque pagination cursor. Return only items positioned after it; pass a
        value obtained from a previous page to fetch the next one.
      schema:
        type: string
    Limit:
      name: limit
      in: query
      required: false
      description: Maximum number of items to return.
      schema:
        type: integer
        minimum: 1
        maximum: 1000
        default: 100
  schemas:
    ListMemoriesResponse:
      type: object
      required:
        - memories
      properties:
        memories:
          type: array
          items:
            $ref: '#/components/schemas/Memory'
        next_cursor:
          type: string
          description: >
            Cursor for the next page. Pass it as `after` to fetch the following
            memories. Omitted when there are no more memories.
    ErrBadRequest:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          description: Human-readable error message
          example: Invalid request parameters
    ErrUnauthorized:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          description: Human-readable error message
          example: Invalid or expired token
    Memory:
      type: object
      required:
        - id
        - content
        - status
        - created_at
      properties:
        id:
          type: string
          description: |
            Identifier of this memory; pass it to `DELETE /memories/{id}`.
        content:
          type: string
          description: The fact remembered, as the agent stated it.
        status:
          type: string
          enum:
            - active
            - invalidated
          description: >
            `active` while agents read this memory, `invalidated` once a later
            memory replaced it.
        created_at:
          type: string
          format: date-time
          description: When the memory was remembered.
        source_session:
          type: string
          description: |
            Customer-provided session identifier that produced the memory.
        source_invocation:
          type: string
          description: Invocation identifier that produced the memory.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKey:
      type: http
      scheme: bearer
      description: Org-scoped API key issued via POST /tokens

````