List documents
documents.list(DocumentListParams**kwargs) -> DocumentListResponse
POST/v3/documents/list
Retrieves a paginated list of documents with their metadata and workflow status
Parameters
Deprecatedcontainer_tags: Optional[Sequence[str]]
Optional tags this document should be containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to group documents.
filepath: Optional[str]
Filter documents by filepath. Exact match for full paths, prefix match if ending with /
List documents
import os
from supermemory import Supermemory
client = Supermemory(
api_key=os.environ.get("SUPERMEMORY_API_KEY"), # This is the default and can be omitted
)
documents = client.documents.list()
print(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
}
}