Creating connections
Create a connection to sync your content with supermemory
To create a connection, just make a POST
request to /v3/connections/{provider}
Parameters
provider
: The provider to connect to. Currently supported providers arenotion
,google-drive
,one-drive
redirectUrl
: The URL to redirect to after the connection is created (your app URL)containerTags
: Optional. For partitioning users, organizations, etc. in your app.- Example:
["user_123", "project_alpha"]
- Example:
metadata
: Optional. Any metadata you want to associate with the connection.- This metadata is added to every document synced from this connection.
documentLimit
: Optional. The maximum number of documents to sync from this connection.- Default: 10,000
- This can be used to limit costs and sync a set number of documents for a specific user.
Response
Supermemory sends a response with the following schema:
You can use the authLink
to redirect the user to the provider’s login page.
Next up, managing connections.