apps/docs/list-memories/overview.mdx
Retrieve paginated memories with filtering and sorting options from your Supermemory account.
const client = new Supermemory({
apiKey: process.env.SUPERMEMORY_API_KEY!
});
const memories = await client.documents.list({ limit: 10 });
console.log(memories);
```
client = Supermemory(api_key=os.environ.get("SUPERMEMORY_API_KEY"))
memories = client.documents.list(limit=10)
print(f"Found {len(memories.memories)} memories")
```
The endpoint returns a structured response containing your memories and pagination information:
{
"memories": [
{
"id": "abc123",
"connectionId": null,
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:35:00.000Z",
"customId": "ml-basics-001",
"title": "Introduction to Machine Learning",
"summary": "This document introduces machine learning as a subset of artificial intelligence...",
"status": "done",
"type": "text",
"metadata": {
"category": "education",
"priority": "high",
"source": "research-notes"
},
"containerTags": ["user_123", "ai-research"]
}
],
"pagination": {
"currentPage": 1,
"totalPages": 3,
"totalItems": 25,
"limit": 10
}
}
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the memory |
status | ProcessingStatus | Current processing status (queued, extracting, chunking, embedding, indexing, done, failed) |
type | MemoryType | Content type (text, pdf, webpage, video, image, etc.) |
title | string | null | Auto-generated or custom title |
summary | string | null | AI-generated summary of content |
createdAt | string | ISO 8601 creation timestamp |
updatedAt | string | ISO 8601 last update timestamp |
| Field | Type | Description |
|---|---|---|
customId | string | null | Your custom identifier for the memory |
connectionId | string | null | ID of connector that created this memory |
metadata | object | null | Custom key-value metadata you provided |
containerTags | string[] | Tags for organizing and filtering memories |
All parameters are optional and sent in the request body since this endpoint uses POST: