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

# List Memories

> List memories with optional type filtering and pagination



## OpenAPI

````yaml GET /memories/list
openapi: 3.1.0
info:
  title: duohub Retriever API
  description: >-
    Retrieve assisted or non-assisted memory from a duohub knowledge graph. For
    best performance, use the official `duohub` Python package.
  version: 1.0.0
servers:
  - url: https://api.duohub.ai
security:
  - APIKeyHeader: []
paths:
  /memories/list:
    get:
      tags:
        - Memories
      summary: List Memories
      description: List memories with optional type filtering and pagination
      operationId: listMemories
      parameters:
        - name: memoryType
          in: query
          required: false
          description: Filter memories by type
          schema:
            type: string
            enum:
              - graph
              - vector
            description: Type of memory storage
        - name: limit
          in: query
          required: false
          description: Maximum number of memories to return
          schema:
            type: integer
            default: 10
            minimum: 1
            maximum: 100
        - name: nextToken
          in: query
          required: false
          description: Token for getting the next page of results
          schema:
            type: string
        - name: previousToken
          in: query
          required: false
          description: Token for getting the previous page of results
          schema:
            type: string
      responses:
        '200':
          description: Memories retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  memories:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Memory unique identifier
                        userID:
                          type: string
                          description: User ID who owns the memory
                        memoryType:
                          type: string
                          description: Type of memory
                        title:
                          type: string
                          description: Memory title
                        description:
                          type: string
                          description: Memory description
                        acceleration:
                          type: boolean
                          description: Whether to enable acceleration
                        factExtraction:
                          type: boolean
                          description: Whether to enable fact extraction
                        createdAt:
                          type: string
                          format: date-time
                          description: Creation timestamp
                        updatedAt:
                          type: string
                          format: date-time
                          description: Last update timestamp
                  count:
                    type: integer
                    description: Number of memories in the current page
                  nextToken:
                    type: string
                    description: Token for the next page of results
                  previousToken:
                    type: string
                    description: Token for the previous page of results
                required:
                  - memories
                  - count
                example:
                  memories:
                    - id: 123e4567-e89b-12d3-a456-426614174000
                      userID: user123
                      memoryType: vector
                      name: Important Memory
                      description: A detailed memory description
                      chunkSize: 250
                      chunkOverlap: 10
                      acceleration: false
                      factExtraction: true
                      createdAt: '2024-01-01T00:00:00Z'
                      updatedAt: '2024-01-01T00:00:00Z'
                  count: 1
                  nextToken: >-
                    eyJpZCI6eyJTIjoiNDU2In0sInVwZGF0ZWRBdCI6eyJTIjoiMjAyNC0wMS0wMlQwMDowMDowMFoifX0=
                  previousToken: null
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                  status:
                    type: string
                    enum:
                      - bad_request
                required:
                  - error
                  - status
                example:
                  error: Invalid limit parameter
                  status: bad_request
        '401':
          description: Unauthorized - API key is missing
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                  status:
                    type: string
                    enum:
                      - unauthorized
                required:
                  - error
                  - status
                example:
                  error: API key is required
                  status: unauthorized
        '403':
          description: Forbidden - Invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                  status:
                    type: string
                    enum:
                      - forbidden
                required:
                  - error
                  - status
                example:
                  error: Invalid API key
                  status: forbidden
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                  status:
                    type: string
                    enum:
                      - internal server error
                required:
                  - error
                  - status
                example:
                  error: An error occurred while listing memories
                  status: internal server error
components:
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Your duohub API key. Type: str'

````