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

# List memories with filters (paginate).



## OpenAPI

````yaml api-reference/flumes.yaml get /v0/memories
openapi: 3.1.0
info:
  title: Flumes Memory API (MVP)
  version: 0.9.2
  description: >
    Unified memory + context assembly for LLM agents.

    Core endpoints: /v0/context/assemble, /v0/memories, /v0/recall,
    /v0/summarize, /v0/prune, /v0/observability/events.

    Private endpoints (not for SDKs): /v0/extract, /v0/memories:batch_upsert.
servers:
  - url: https://api.flumes.ai
    description: Production
  - url: https://staging.api.flumes.ai
    description: Staging
security:
  - bearerAuth: []
paths:
  /v0/memories:
    get:
      tags:
        - Memories
      summary: List memories with filters (paginate).
      operationId: listMemories
      parameters:
        - $ref: '#/components/parameters/AgentHeader'
        - in: query
          name: entity_id
          schema:
            type: string
        - in: query
          name: namespace
          schema:
            type: string
            default: default
        - in: query
          name: type
          schema:
            type: string
        - in: query
          name: tag
          schema:
            type: string
        - in: query
          name: archived
          schema:
            type: boolean
            default: false
        - in: query
          name: before
          schema:
            type: string
            format: date-time
        - in: query
          name: after
          schema:
            type: string
            format: date-time
        - in: query
          name: sort
          schema:
            type: string
            enum:
              - timestamp_desc
              - timestamp_asc
            default: timestamp_desc
        - in: query
          name: limit
          schema:
            type: integer
            default: 50
            maximum: 200
          description: Hint; server may return fewer items.
        - in: query
          name: cursor
          schema:
            type: string
            nullable: true
          description: Opaque cursor returned by previous page.
      responses:
        '200':
          description: Page of memories
          headers:
            X-Request-Id:
              schema:
                type: string
            X-RateLimit-Remaining:
              schema:
                type: integer
            X-RateLimit-Reset:
              schema:
                type: integer
            Access-Control-Allow-Origin:
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/Memory'
                  next_cursor:
                    type: string
                    nullable: true
        '400':
          $ref: '#/components/responses/ErrorResponse'
        '401':
          $ref: '#/components/responses/ErrorResponse'
        '422':
          $ref: '#/components/responses/ErrorResponse'
        '429':
          $ref: '#/components/responses/ErrorResponse'
components:
  parameters:
    AgentHeader:
      name: X-Flumes-Agent
      in: header
      required: false
      schema:
        type: string
        maxLength: 128
      description: Agent id within the org.
  schemas:
    Memory:
      type: object
      description: >-
        Base memory record (open-world). Write requests ignore org fields; org
        is taken from header.
      properties:
        memory_id:
          type: string
          readOnly: true
        org_id:
          type: string
          readOnly: true
        namespace:
          type: string
          default: default
          maxLength: 64
        agent_id:
          type: string
          nullable: true
        entity_id:
          type: string
          nullable: true
        type:
          type: string
          enum:
            - fact
            - event
            - document
            - note
            - profile
            - chunk
        text:
          type: string
          description: >-
            Human-readable content; for facts, this is a rendered form of
            subject/predicate/object.
          maxLength: 20000
        metadata:
          type: object
          additionalProperties: true
        tags:
          type: array
          items:
            type: string
            maxLength: 64
        timestamp:
          type: string
          format: date-time
        archived:
          type: boolean
          default: false
        sensitivity:
          type: string
          enum:
            - none
            - pii
            - auto
          default: auto
        subject:
          type: string
          nullable: true
          description: Entity id like ent:user_42
        predicate:
          type: string
          nullable: true
          maxLength: 128
        object:
          oneOf:
            - type: string
              maxLength: 4000
            - type: number
            - type: boolean
            - type: object
              additionalProperties: true
            - type: 'null'
        object_type:
          type: string
          enum:
            - literal
            - string
            - number
            - date
            - json
            - entity
          nullable: true
        unit:
          type: string
          nullable: true
          maxLength: 32
        keys:
          type: array
          items:
            type: string
            maxLength: 128
          nullable: true
          description: Conflict keys for supersession.
        valid_from:
          type: string
          format: date-time
          nullable: true
        valid_to:
          type: string
          format: date-time
          nullable: true
        confidence:
          type: number
          minimum: 0
          maximum: 1
          nullable: true
        status:
          type: string
          enum:
            - active
            - superseded
            - disputed
          default: active
        provenance:
          type: object
          additionalProperties: true
          description: 'Source info; e.g., { source_turn: memory_id }'
      required:
        - type
        - namespace
        - text
    Error:
      type: object
      properties:
        error:
          type: string
          examples:
            - unauthorized
            - validation_error
            - rate_limited
            - conflict
        message:
          type: string
        request_id:
          type: string
        details:
          type: object
          additionalProperties: true
  responses:
    ErrorResponse:
      description: Error envelope
      headers:
        X-Request-Id:
          schema:
            type: string
        X-RateLimit-Remaining:
          schema:
            type: integer
        X-RateLimit-Reset:
          schema:
            type: integer
            description: UTC seconds until limit resets
        Access-Control-Allow-Origin:
          schema:
            type: string
          description: Present if CORS enabled
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: APIKey

````