--- title: "Basic Listing" description: "Simple memory retrieval across languages" --- Simple memory retrieval examples for getting started with the list memories endpoint. ## Basic Usage ```typescript import Supermemory from 'supermemory'; const client = new Supermemory({ apiKey: process.env.SUPERMEMORY_API_KEY! }); const response = await client.documents.list({ limit: 10 }); console.log(response); ``` ```python from supermemory import Supermemory import os client = Supermemory(api_key=os.environ.get("SUPERMEMORY_API_KEY")) response = client.documents.list(limit=10) print(response) ``` ```bash curl -X POST "https://api.supermemory.ai/v3/documents/list" \ -H "Authorization: Bearer $SUPERMEMORY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"limit": 10}' ``` ## With Custom Parameters ```typescript const response = await client.documents.list({ containerTags: ["user_123"], limit: 20, sort: "updatedAt", order: "desc" }); console.log(`Found ${response.memories.length} memories`); ``` ```python response = client.documents.list( container_tags=["user_123"], limit=20, sort="updatedAt", order="desc" ) print(f"Found {len(response.memories)} memories") ``` ```bash curl -X POST "https://api.supermemory.ai/v3/documents/list" \ -H "Authorization: Bearer $SUPERMEMORY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "containerTags": ["user_123"], "limit": 20, "sort": "updatedAt", "order": "desc" }' ``` Start with small `limit` values (10-20) when testing to avoid overwhelming responses.