Skip to content
Get started

Create connection

POST/v3/connections/{provider}

Initialize connection and get authorization URL

Path ParametersExpand Collapse
provider: "notion" or "google-drive" or "onedrive" or 4 more
One of the following:
"notion"
"google-drive"
"onedrive"
"gmail"
"github"
"web-crawler"
"s3"
Body ParametersJSONExpand Collapse
containerTag: optional string
maxLength100
containerTags: optional array of string
documentLimit: optional number
minimum1
maximum10000
metadata: optional map[string or number or boolean]
One of the following:
string
number
boolean
redirectUrl: optional string
ReturnsExpand Collapse
id: string
expiresIn: string
redirectsTo: optional string

Create connection

curl https://api.supermemory.ai/v3/connections/$PROVIDER \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $SUPERMEMORY_API_KEY" \
    -d '{}'
{
  "id": "id",
  "authLink": "authLink",
  "expiresIn": "expiresIn",
  "redirectsTo": "redirectsTo"
}
Returns Examples
{
  "id": "id",
  "authLink": "authLink",
  "expiresIn": "expiresIn",
  "redirectsTo": "redirectsTo"
}