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

# List memories

> Paginated list of current (non-deleted) memories. Supports filtering
by category, project, and text search. Categories and projects accept
comma-separated values for multi-filter queries.




## OpenAPI

````yaml /openapi.yaml get /api/memories
openapi: 3.1.0
info:
  title: MemContext API
  version: 1.1.0
  description: |
    REST API for persistent, evolving AI memory. Save, search, and manage
    memories with automatic deduplication, version chains, and hybrid retrieval.
servers:
  - url: https://api.memcontext.in
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Memories
    description: Save, search, list, update, and delete memories.
  - name: History
    description: Inspect how memories evolve over time.
  - name: Feedback
    description: Rate retrieval quality to improve future results.
  - name: Profiles
    description: Pre-aggregated user context from memory.
  - name: Workspaces
    description: >-
      Company/team account boundaries for billing, members, API keys, and
      vaults.
  - name: API Keys
    description: Workspace-bound API keys for server-side integrations.
  - name: Subscription
    description: Workspace-owned billing and member-memory limits.
  - name: Context Vault
    description: Document ingestion and workspace RAG retrieval.
paths:
  /api/memories:
    get:
      tags:
        - Memories
      summary: List memories
      description: |
        Paginated list of current (non-deleted) memories. Supports filtering
        by category, project, and text search. Categories and projects accept
        comma-separated values for multi-filter queries.
      operationId: listMemories
      parameters:
        - in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          description: Number of memories to return.
        - in: query
          name: offset
          schema:
            type: integer
            minimum: 0
            default: 0
          description: Pagination offset.
        - in: query
          name: category
          schema:
            type: string
          description: >-
            Comma-separated category filter. Values: `preference`, `fact`,
            `decision`, `context`.
        - in: query
          name: scope
          schema:
            type: string
            maxLength: 200
          description: >-
            Hard isolation boundary. When provided, results come only from that
            scope. Omit to list only unscoped/global memories.
        - in: query
          name: project
          schema:
            type: string
          description: >-
            Comma-separated project filter within the selected scope. Use
            `__memcontext_no_project__` for memories without a project.
        - in: query
          name: search
          schema:
            type: string
            maxLength: 200
          description: >-
            Text search across memory content (case-insensitive substring
            match).
      responses:
        '200':
          description: Paginated memory list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListMemoriesResponse'
components:
  schemas:
    ListMemoriesResponse:
      type: object
      required:
        - memories
        - total
        - hasMore
      properties:
        memories:
          type: array
          items:
            $ref: '#/components/schemas/ListMemoryItem'
        total:
          type: integer
          description: Total number of memories matching the filters.
        hasMore:
          type: boolean
          description: Whether more results exist beyond the current page.
    ListMemoryItem:
      type: object
      required:
        - id
        - content
        - source
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        content:
          type: string
        category:
          type: string
          nullable: true
        scope:
          type: string
          nullable: true
        project:
          type: string
          nullable: true
        source:
          type: string
        version:
          type: integer
        validFrom:
          type: string
          format: date-time
          nullable: true
        validUntil:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >
        API key created from the MemContext dashboard. Keys are prefixed with
        `mc_`, bound to one workspace, and API-key requests cannot override that
        workspace.

````