Simple memory retrieval examples for getting started with the list memories endpoint.

Basic Usage

import Supermemory from 'supermemory';

const client = new Supermemory({
  apiKey: process.env.SUPERMEMORY_API_KEY!
});

const response = await client.memories.list({ limit: 10 });
console.log(response);

With Custom Parameters

const response = await client.memories.list({
  containerTags: ["user_123"],
  limit: 20,
  sort: "updatedAt",
  order: "desc"
});

console.log(`Found ${response.memories.length} memories`);
Start with small limit values (10-20) when testing to avoid overwhelming responses.