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

# List Agent Memories

> List all saved memories for this agent with topics, keywords, and previews. Optionally filter by keyword.



## OpenAPI

````yaml /api-reference/v1/v1.1.0_openapi.json post /action/list_agent_memories
openapi: 3.0.0
info:
  version: 1.1.0
  title: AI Actions - Get Data
  description: API specifications for 'Get Data' category AI actions.
  license:
    name: MIT
servers:
  - url: https://api-lr.agent.ai/v1
security:
  - bearerAuth: []
paths:
  /action/list_agent_memories:
    post:
      tags:
        - Inputs & Data Retrieval
      summary: List Agent Memories
      description: >-
        List all saved memories for this agent with topics, keywords, and
        previews. Optionally filter by keyword.
      operationId: listAgentMemories
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                agent_id_override:
                  type: string
                  description: >-
                    Optionally list memories from a different agent. Leave empty
                    to use current agent.
                keyword_filter:
                  type: string
                  description: >-
                    Filter memories containing this keyword (e.g., "pricing",
                    "enterprise", contact name).
                metadata_filter:
                  type: string
                  x-ui: textarea
                  description: >-
                    Filter memories by metadata key-value pairs. JSON format,
                    e.g., {"meeting_title": "Q4 Review", "event_id":
                    "event_123"}. Only memories matching ALL specified metadata
                    will be returned.
                limit:
                  type: string
                  description: 'Maximum number of memories to return (default: 50).'
                  default: '50'
                  pattern: ^[0-9]+$
                include_full_content:
                  type: boolean
                  description: >-
                    Return full raw text content and metadata for each memory
                    instead of just the summary.
                  default: false
                output_variable_name:
                  type: string
                  description: >-
                    Variable name to store the memory list, like
                    'agent_memories' or 'memory_list'.
                  default: agent_memories
                  pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
              required:
                - limit
                - output_variable_name
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
        '401':
          description: Unauthorized - invalid or missing bearer token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
components:
  schemas:
    ActionResponse:
      type: object
      properties:
        status:
          type: integer
          format: int32
          description: HTTP status code of the action response
        response:
          type: object
          description: Response data from the action
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token from your account
        ([https://agent.ai/user/integrations#api](https://agent.ai/user/integrations#api))

````