Skip to content

Commit 85c7d98

Browse files
authored
docs: google drive connector scoped sync and changelog (supermemoryai#857)
1 parent c59457d commit 85c7d98

3 files changed

Lines changed: 35 additions & 4 deletions

File tree

apps/docs/changelog/developer-platform.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ description: "API updates, new endpoints, and SDK releases"
66

77
API updates, new endpoints, SDK releases, and developer-focused features.
88

9+
## April 13, 2026
10+
11+
- **Google Drive scoped sync:** New connections default to a **hosted folder/file picker** after OAuth; only chosen items sync. Use `metadata.syncScope: "full"` to sync the whole Drive. Import jobs **skip** scoped connections until a selection exists.
12+
913
## March 18, 2026
1014

1115
- **Supermemory CLI:** New command-line tool for managing memories, documents, profiles, tags, connectors, and API keys directly from the terminal.

apps/docs/changelog/overview.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ title: "Changelog"
33
description: "New updates and improvements to Supermemory"
44
---
55

6+
<Update label="April 13, 2026" tags={["Integrations", "API"]}>
7+
8+
### Google Drive: scoped sync by default
9+
10+
New Google Drive connections default to **folder and file** scope: after OAuth, users complete a hosted picker; only selected items sync. Set `metadata.syncScope` to `"full"` on connection creation to sync the entire Drive without the picker. Scoped connections without a saved selection are skipped by import jobs until setup is finished.
11+
12+
</Update>
13+
614
<Update label="March 18, 2026" tags={["API", "SDK", "Console", "CLI"]}>
715

816
### Supermemory CLI

apps/docs/connectors/google-drive.mdx

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ icon: "google-drive"
66

77
Connect Google Drive to sync documents into your Supermemory knowledge base with OAuth authentication and custom app support.
88

9+
## Sync scope
10+
11+
**Default for new connections:** after OAuth, the user completes a **folder and file** picker (Google Docs, Sheets, Slides, and PDFs). Only items they select are synced and updated until they change the selection (for example from the Supermemory console).
12+
13+
**Whole Drive:** set `metadata.syncScope` to `"full"` when creating the connection so the entire Drive syncs without the picker.
14+
15+
**Explicit scoped mode:** set `metadata.syncScope` to `"selected"` for the picker flow, or rely on the default for new connects.
16+
17+
<Note>
18+
If you use scoped sync and the user has not finished the picker yet, **scheduled or manual import may skip that connection** until a selection is saved on the connection.
19+
</Note>
20+
921
## Quick Setup
1022

1123
### 1. Create Google Drive Connection
@@ -25,7 +37,8 @@ Connect Google Drive to sync documents into your Supermemory knowledge base with
2537
documentLimit: 3000,
2638
metadata: {
2739
source: 'google-drive',
28-
department: 'engineering'
40+
department: 'engineering',
41+
syncScope: 'selected'
2942
}
3043
});
3144

@@ -48,7 +61,8 @@ Connect Google Drive to sync documents into your Supermemory knowledge base with
4861
document_limit=3000,
4962
metadata={
5063
'source': 'google-drive',
51-
'department': 'engineering'
64+
'department': 'engineering',
65+
'syncScope': 'selected',
5266
}
5367
)
5468

@@ -68,16 +82,21 @@ Connect Google Drive to sync documents into your Supermemory knowledge base with
6882
"documentLimit": 3000,
6983
"metadata": {
7084
"source": "google-drive",
71-
"department": "engineering"
85+
"department": "engineering",
86+
"syncScope": "selected"
7287
}
7388
}'
7489
```
7590
</Tab>
7691
</Tabs>
7792

93+
<Note>
94+
For **whole Drive** sync, include `"syncScope": "full"` in `metadata` on the same `POST /v3/connections/google-drive` request instead of `"selected"`.
95+
</Note>
96+
7897
### 2. Handle OAuth Callback
7998

80-
After user grants permissions, Google redirects to your callback URL. The connection is automatically established.
99+
After the user grants permissions, Google redirects through Supermemory to finish the connection. With **scoped** sync (`syncScope` omitted or `"selected"`), the user is sent to Supermemory’s **hosted file and folder picker**; they must complete that step before imports run. With **`syncScope: "full"`**, Supermemory redirects to your `redirectUrl` (or returns connection details) **without** the picker. You can open the picker again later for an existing connection (Supermemory console, or `POST /v3/connections/{connectionId}/google-drive/hosted-picker` with an authenticated admin session).
81100

82101
### 3. Check Connection Status
83102

0 commit comments

Comments
 (0)