Mem0 icon

Mem0

Interact with the Mem0 API - intelligent memory layer for AI

Memory → List Multiple

AI-generated

Summary

List multiple memories from the Mem0 service, optionally filtering by user, agent, application, or session context.

Inputs

  • authType (required) — Choose between Mem0 cloud or your own instance
  • userId — Unique user identifier to associate with the memory. Used to filter and organize memories by user. Default empty string; if provided, query shifts to /v1/memories/user/{userId}.
  • agentId — Identifier of the AI agent/assistant that is interacting. Useful for separating memories by different agents. Default empty string.
  • appId — Application or system context identifier. Use to segment memories by different apps. Default empty string.
  • runId — Identifier of the current session/run. Groups memories from the same conversation or interaction. Default empty string.

Output shape

Array of memory objects, each containing fields such as id, user_id, app_id, run_id, metadata, text, created_at, and other contextual data. If the API returns a single object or error, it is wrapped accordingly.

The node iterates over all input items and the API response, pushing each memory as a separate item on the main output.

Examples

Example 1: List all memories for a specific user

Set authType to 'cloud', userId to 'user_123'. No agentId, appId, or runId needed.

Example 2: List memories filtered by agent and session

Set authType to 'cloud', agentId to 'sales_agent', runId to 'session_2024_001'. userId and appId can remain empty.

Links

Discussion