Skip to content
Get started

Sync connection

client.connections.import("notion" | "google-drive" | "onedrive" | 4 moreprovider, ConnectionImportParams { containerTags } body, RequestOptionsoptions?): ConnectionImportResponse
POST/v3/connections/{provider}/import

Initiate a manual sync of connections

ParametersExpand Collapse
provider: "notion" | "google-drive" | "onedrive" | 4 more
One of the following:
"notion"
"google-drive"
"onedrive"
"gmail"
"github"
"web-crawler"
"s3"
body: ConnectionImportParams { containerTags }
containerTags?: Array<string>

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

ReturnsExpand Collapse
ConnectionImportResponse = string

Sync connection

import Supermemory from 'supermemory';

const client = new Supermemory({
  apiKey: process.env['SUPERMEMORY_API_KEY'], // This is the default and can be omitted
});

const response = await client.connections.import('notion');

console.log(response);
Returns Examples