Skip to main content
POST
/
v3
/
connections
/
{provider}
/
connection
Get connection (by provider)
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({containerTags: ['user_123', 'project_123']})
};

fetch('https://api.supermemory.ai/v3/connections/{provider}/connection', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "createdAt": "<string>",
  "documentLimit": 123,
  "email": "<string>",
  "expiresAt": "<string>",
  "id": "<string>",
  "metadata": {},
  "provider": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

provider
enum<string>
required
Available options:
notion,
google-drive,
onedrive,
web-crawler

Body

application/json
containerTags
string[]
required

Comma-separated list of container tags to filter connection by

Minimum length: 1
Example:
["user_123", "project_123"]

Response

Connection details

createdAt
string<datetime>
required
id
string
required
provider
string
required
documentLimit
number
email
string
expiresAt
string<datetime>
metadata
object