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

# Load Memory

> Load memory entries for an agent during execution (GET endpoint for easier use)



## OpenAPI

````yaml /api-reference/openapi/EvoAI-Knowledge-Service/memory.yaml get /api/v1/memory/load
openapi: 3.1.0
info:
  title: Evolution Foundation - Knowledge Service - Memory
  description: Knowledge base and memory management
  version: 1.0.0
servers:
  - url: https://api.evoai.app
    description: Production server
  - url: http://localhost:3005
    description: Development server
    variables:
      port:
        default: '3005'
  - url: '{customUrl}'
    description: Custom server
    variables:
      customUrl:
        default: https://your-instance.com
        description: Enter your server URL
security: []
paths:
  /api/v1/memory/load:
    get:
      summary: Load Memory
      description: >-
        Load memory entries for an agent during execution (GET endpoint for
        easier use)
      operationId: load_memory_api_v1_memory_load_get
      parameters:
        - name: app_name
          in: query
          required: true
          schema:
            type: string
            title: App Name
            description: Application name (usually agent_id)
          description: Application name (usually agent_id)
        - name: user_id
          in: query
          required: true
          schema:
            type: string
            description: User ID to load memories for
            title: User Id
          description: User ID to load memories for
        - name: query
          in: query
          required: false
          schema:
            type: string
            title: Query
            description: >-
              Search query to find relevant memories. If empty, returns recent
              memories.
            default: ''
          description: >-
            Search query to find relevant memories. If empty, returns recent
            memories.
        - name: max_results
          in: query
          required: false
          schema:
            type: integer
            maximum: 50
            minimum: 1
            title: Max Results
            description: Maximum number of results to return
            default: 10
          description: Maximum number of results to return
        - name: x-client-id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: X-Client-Id
      responses:
        '200':
          description: Memory loaded successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse_MemorySearchResponse_'
        '400':
          description: Bad Request (invalid data)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: BAD_REQUEST
                  message: Invalid request parameters
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/memory/load
                  method: GET
        '401':
          description: Unauthorized (invalid or missing token)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: UNAUTHORIZED
                  message: Invalid or missing authentication token
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/memory/load
                  method: GET
        '403':
          description: Forbidden (insufficient permissions)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: FORBIDDEN
                  message: Insufficient permissions to perform this action
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/memory/load
                  method: GET
        '404':
          description: Not Found (resource not found)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: NOT_FOUND
                  message: Memory entries not found
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/memory/load
                  method: GET
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error (server error)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: INTERNAL_SERVER_ERROR
                  message: An unexpected error occurred
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/memory/load
                  method: GET
components:
  schemas:
    SuccessResponse_MemorySearchResponse_:
      properties:
        success:
          type: boolean
          title: Success
          description: Success indicator
          default: true
        data:
          $ref: b42845e7-211e-4d3c-87e4-c27bbc3b6846
          description: Response payload
        meta:
          $ref: c7ea61b9-a1d9-407c-9244-09be9f00110d
          description: Metadata
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: Message
          description: Optional success message
      type: object
      required:
        - data
        - meta
      title: SuccessResponse[MemorySearchResponse]
    ErrorResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Success indicator
          default: false
        error: 3b56b665-e9c0-41b1-a37c-355a53be9c43
        meta:
          $ref: 50f39c23-fe22-4b97-8f84-b0fff72697b7
          description: Metadata
      type: object
      required:
        - error
        - meta
      title: ErrorResponse
      description: |-
        Standard error response schema matching error_response() return format.

        This schema matches the structure returned by error_response() function,
        which always uses ErrorInfo for the error field.
    HTTPValidationError:
      properties:
        detail:
          items: f4eb5d82-0acd-4e49-a748-7e7b04b04962
          type: array
          title: Detail
      type: object
      title: HTTPValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.