## Create connection `connections.create(Literal["notion", "google-drive", "onedrive", 4 more]provider, ConnectionCreateParams**kwargs) -> ConnectionCreateResponse` **post** `/v3/connections/{provider}` Initialize connection and get authorization URL ### Parameters - `provider: Literal["notion", "google-drive", "onedrive", 4 more]` - `"notion"` - `"google-drive"` - `"onedrive"` - `"gmail"` - `"github"` - `"web-crawler"` - `"s3"` - `container_tag: Optional[str]` - `container_tags: Optional[Sequence[str]]` - `document_limit: Optional[int]` - `metadata: Optional[Dict[str, Union[str, float, bool]]]` - `str` - `float` - `bool` - `redirect_url: Optional[str]` ### Returns - `class ConnectionCreateResponse: …` - `id: str` - `auth_link: str` - `expires_in: str` - `redirects_to: Optional[str]` ### Example ```python import os from supermemory import Supermemory client = Supermemory( api_key=os.environ.get("SUPERMEMORY_API_KEY"), # This is the default and can be omitted ) connection = client.connections.create( provider="notion", ) print(connection.id) ``` #### Response ```json { "id": "id", "authLink": "authLink", "expiresIn": "expiresIn", "redirectsTo": "redirectsTo" } ```