Skip to content
Get started

List documents

connections.list_documents(Literal["notion", "google-drive", "onedrive", 4 more]provider, ConnectionListDocumentsParams**kwargs) -> ConnectionListDocumentsResponse
POST/v3/connections/{provider}/documents

List documents indexed for a provider and container tags

ParametersExpand Collapse
provider: Literal["notion", "google-drive", "onedrive", 4 more]
One of the following:
"notion"
"google-drive"
"onedrive"
"gmail"
"github"
"web-crawler"
"s3"
container_tags: Optional[Sequence[str]]

Optional comma-separated list of container tags to filter documents by

ReturnsExpand Collapse
List[ConnectionListDocumentsResponseItem]
id: str
created_at: str
formatdatetime
status: str
formatdatetime
summary: Optional[str]
title: Optional[str]
type: str
updated_at: str
formatdatetime

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
)
response = client.connections.list_documents(
    provider="notion",
)
print(response)
[
  {
    "id": "id",
    "createdAt": "createdAt",
    "status": "status",
    "summary": "summary",
    "title": "title",
    "type": "type",
    "updatedAt": "updatedAt"
  }
]
Returns Examples
[
  {
    "id": "id",
    "createdAt": "createdAt",
    "status": "status",
    "summary": "summary",
    "title": "title",
    "type": "type",
    "updatedAt": "updatedAt"
  }
]