## Create connection `client.connections.create("notion" | "google-drive" | "onedrive" | 4 moreprovider, ConnectionCreateParamsbody, RequestOptionsoptions?): ConnectionCreateResponse` **post** `/v3/connections/{provider}` Initialize connection and get authorization URL ### Parameters - `provider: "notion" | "google-drive" | "onedrive" | 4 more` - `"notion"` - `"google-drive"` - `"onedrive"` - `"gmail"` - `"github"` - `"web-crawler"` - `"s3"` - `body: ConnectionCreateParams` - `containerTag?: string` - `containerTags?: Array` - `documentLimit?: number` - `metadata?: Record | null` - `string` - `number` - `boolean` - `redirectUrl?: string` ### Returns - `ConnectionCreateResponse` - `id: string` - `authLink: string` - `expiresIn: string` - `redirectsTo?: string` ### Example ```typescript 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); ``` #### Response ```json { "id": "id", "authLink": "authLink", "expiresIn": "expiresIn", "redirectsTo": "redirectsTo" } ```