Create connection
client.connections.create("notion" | "google-drive" | "onedrive" | 4 moreprovider, ConnectionCreateParams { containerTag, containerTags, documentLimit, 2 more } body, RequestOptionsoptions?): ConnectionCreateResponse { id, authLink, expiresIn, redirectsTo }
POST/v3/connections/{provider}
Create connection
import Supermemory from 'supermemory';
const client = new Supermemory({
apiKey: process.env['SUPERMEMORY_API_KEY'], // This is the default and can be omitted
});
const connection = await client.connections.create('notion');
console.log(connection.id);{
"id": "id",
"authLink": "authLink",
"expiresIn": "expiresIn",
"redirectsTo": "redirectsTo"
}Returns Examples
{
"id": "id",
"authLink": "authLink",
"expiresIn": "expiresIn",
"redirectsTo": "redirectsTo"
}