POST request to /v3/connections/{provider}
Parameters
provider: The provider to connect to. Currently supported providers arenotion,google-drive,onedrive,web-crawlerredirectUrl: The URL to redirect to after the connection is created (your app URL)- Note: For
web-crawler, this is optional as no OAuth flow is required
- Note: For
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.
- For
web-crawler, must includestartUrlin metadata:{"startUrl": "https://example.com"}
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:authLink to redirect the user to the provider’s login page.
Web Crawler Exception: For
web-crawler provider, authLink and expiresIn will be null since no OAuth flow is required. The connection is established immediately upon creation.