Skip to content
Get started

Get connection (by provider)

POST/v3/connections/{provider}/connection

Get connection details with provider and container tags

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
containerTags: array of string

Comma-separated list of container tags to filter connection by

ReturnsExpand Collapse
id: string
createdAt: string
formatdatetime
provider: string
DeprecatedcontainerTags: optional array of string
documentLimit: optional number
email: optional string
expiresAt: optional string
formatdatetime
metadata: optional map[unknown]

Get connection (by provider)

curl https://api.supermemory.ai/v3/connections/$PROVIDER/connection \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $SUPERMEMORY_API_KEY" \
    -d '{
          "containerTags": [
            "user_123",
            "project_123"
          ]
        }'
{
  "id": "id",
  "createdAt": "createdAt",
  "provider": "provider",
  "containerTags": [
    "string"
  ],
  "documentLimit": 0,
  "email": "email",
  "expiresAt": "expiresAt",
  "metadata": {
    "foo": "bar"
  }
}
Returns Examples
{
  "id": "id",
  "createdAt": "createdAt",
  "provider": "provider",
  "containerTags": [
    "string"
  ],
  "documentLimit": 0,
  "email": "email",
  "expiresAt": "expiresAt",
  "metadata": {
    "foo": "bar"
  }
}