From 87b361c26bf5fc16049cd2727825891aa14b8e8b Mon Sep 17 00:00:00 2001
From: Dhravya Shah <dhravyashah@gmail.com>
Date: Sun, 18 Jan 2026 16:55:32 -0800
Subject: docs changes (#678)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
---
 apps/docs/memory-api/sdks/python.mdx | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

(limited to 'apps/docs/memory-api/sdks/python.mdx')

diff --git a/apps/docs/memory-api/sdks/python.mdx b/apps/docs/memory-api/sdks/python.mdx
index 52b6b3af..0888f2b0 100644
--- a/apps/docs/memory-api/sdks/python.mdx
+++ b/apps/docs/memory-api/sdks/python.mdx
@@ -78,7 +78,7 @@ from supermemory import Supermemory
 
 client = Supermemory()
 
-client.memories.upload_file(
+client.documents.upload_file(
     file=Path("/path/to/file"),
 )
 ```
@@ -101,7 +101,7 @@ from supermemory import Supermemory
 client = Supermemory()
 
 try:
-    client.memories.add(
+    client.add(
         content="This is a detailed article about machine learning concepts...",
     )
 except supermemory.APIConnectionError as e:
@@ -146,7 +146,7 @@ client = Supermemory(
 )
 
 # Or, configure per-request:
-client.with_options(max_retries=5).memories.add(
+client.with_options(max_retries=5).documents.add(
     content="This is a detailed article about machine learning concepts...",
 )
 ```
@@ -171,7 +171,7 @@ client = Supermemory(
 )
 
 # Override per-request:
-client.with_options(timeout=5.0).memories.add(
+client.with_options(timeout=5.0).documents.add(
     content="This is a detailed article about machine learning concepts...",
 )
 ```
@@ -214,12 +214,12 @@ The "raw" Response object can be accessed by prefixing `.with_raw_response.` to
 from supermemory import Supermemory
 
 client = Supermemory()
-response = client.memories.with_raw_response.add(
+response = client.documents.with_raw_response.add(
     content="This is a detailed article about machine learning concepts...",
 )
 print(response.headers.get('X-My-Header'))
 
-memory = response.parse()  # get the object that `memories.add()` would have returned
+memory = response.parse()  # get the object that `documents.add()` would have returned
 print(memory.id)
 ```
 
@@ -234,7 +234,7 @@ The above interface eagerly reads the full response body when you make the reque
 To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
 
 ```python
-with client.memories.with_streaming_response.add(
+with client.documents.with_streaming_response.add(
     content="This is a detailed article about machine learning concepts...",
 ) as response:
     print(response.headers.get("X-My-Header"))
@@ -346,4 +346,4 @@ print(supermemory.__version__)
 
 ## Requirements
 
-Python 3.8 or higher.
\ No newline at end of file
+Python 3.8 or higher.
-- 
cgit v1.2.3

