Overview
Add Mem0 to any ModuleX agent or workflow. Persistent agent memory management against the Mem0 REST API (api.mem0.ai) — add, search, and retrieve long-term memories so AI agents can recall user context, preferences, and prior conversations across sessions.
Categories: AI & Machine Learning · Knowledge Base · Agentic · Auth: API Key · Actions: 3
Authentication
API Key Authentication
Authenticate using your Mem0 API keyStep 1
Go to https://app.mem0.ai and sign up or log in
Required Credentials
| Field | Description | Required | Format |
|---|---|---|---|
| Mem0 API Key | Your Mem0 API key from app.mem0.ai | Yes | - |
Available Actions
add_memories — Add memories to Mem0 for persistent storage and retrieval.
add_memories — Add memories to Mem0 for persistent storage and retrieval.
Parameters
User ID associated with the memory (e.g., “user_123”, “alice@example.com”)
Array of message objects with role and content (e.g., [{“role”: “user”, “content”: “Hello”}])
Response
search_memories — Search for memories in Mem0 using semantic search.
search_memories — Search for memories in Mem0 using semantic search.
get_memories — Retrieve memories from Mem0 by ID or filter criteria.
get_memories — Retrieve memories from Mem0 by ID or filter criteria.
Parameters
User ID to retrieve memories for (e.g., “user_123”, “alice@example.com”)
Specific memory ID to retrieve (e.g., “mem_abc123”)
Start date for filtering by created_at (e.g., “2024-01-15”)
End date for filtering by created_at (e.g., “2024-12-31”)
Maximum number of results to return (e.g., 10, 50, 100) (Default:
10)Page number to retrieve for paginated list results (Default:
1)Response
Limits & Quotas
- Rate limits and quotas depend on your Mem0 plan; see https://docs.mem0.ai for current tiers.
add_memoriesis processed asynchronously — the response returns astatus(initiallyPENDING) and anevent_idfor polling progress, not the stored memory records themselves.- Error model: non-2xx responses and timeouts are caught and
returned as
success=False+errorrather than raising. Plan for retries on the agent side based on the error string.