Sync connection

JavaScript

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}/import', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));

Response Status Codes

  • 202: Successful import
  • 400: Bad request
  • 500: Internal server error

Endpoint

  • POST /v3/connections/{provider}/import

Documentation Index

Fetch the complete documentation index at: https://supermemory.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization

  • Type: string
  • Location: header
  • Required: Yes
  • Format: Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

provider

  • Type: enum<string>
  • Required: Yes
  • Available options:
    • notion
    • google-drive
    • onedrive
    • gmail
    • github
    • web-crawler
    • s3

Body

Content type: application/json

containerTags

  • Type: string[]

  • Optional: Yes

  • Description: A comma-separated list of container tags to filter connections by.

  • Maximum string length: 100

  • Pattern: ^[a-zA-Z0-9_:-]+$

  • Example:

    ["user_123", "project_123"]
    

Response

  • 202: Importing connections...
  • The response is of type string.