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
Create connection
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){
"id": "id",
"authLink": "authLink",
"expiresIn": "expiresIn",
"redirectsTo": "redirectsTo"
}Returns Examples
{
"id": "id",
"authLink": "authLink",
"expiresIn": "expiresIn",
"redirectsTo": "redirectsTo"
}