List documents
client.documents.list(DocumentListParams { containerTags, filepath, filters, 5 more } body, RequestOptionsoptions?): DocumentListResponse { memories, pagination }
POST/v3/documents/list
List documents
import Supermemory from 'supermemory';
const client = new Supermemory({
apiKey: process.env['SUPERMEMORY_API_KEY'], // This is the default and can be omitted
});
const documents = await client.documents.list();
console.log(documents.memories);{
"memories": [
{
"id": "acxV5LHMEsG2hMSNb4umbn",
"connectionId": "xxxxxxxxxxxxxxxxxxxxxx",
"createdAt": "2025-04-15T09:30:00.000Z",
"customId": "doc-api-rate-limits",
"filepath": "filepath",
"metadata": {
"source": "bar",
"language": "bar"
},
"status": "done",
"summary": "API rate limit policy: 100 req/min free, 1000 req/min pro.",
"title": "API Rate Limiting Policy",
"type": "text",
"updatedAt": "2025-04-15T09:31:00.000Z",
"containerTags": [
"string"
],
"content": "This is the content of the document...",
"url": "https://docs.example.com/guides/rate-limits"
}
],
"pagination": {
"currentPage": 1,
"totalItems": 100,
"totalPages": 10,
"limit": 10
}
}Returns Examples
{
"memories": [
{
"id": "acxV5LHMEsG2hMSNb4umbn",
"connectionId": "xxxxxxxxxxxxxxxxxxxxxx",
"createdAt": "2025-04-15T09:30:00.000Z",
"customId": "doc-api-rate-limits",
"filepath": "filepath",
"metadata": {
"source": "bar",
"language": "bar"
},
"status": "done",
"summary": "API rate limit policy: 100 req/min free, 1000 req/min pro.",
"title": "API Rate Limiting Policy",
"type": "text",
"updatedAt": "2025-04-15T09:31:00.000Z",
"containerTags": [
"string"
],
"content": "This is the content of the document...",
"url": "https://docs.example.com/guides/rate-limits"
}
],
"pagination": {
"currentPage": 1,
"totalItems": 100,
"totalPages": 10,
"limit": 10
}
}