POST
/
v3
/
connections
/
{provider}
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"redirectUrl":"<string>","containerTags":["<string>"],"metadata":{},"documentLimit":5000}'
};

fetch('https://api.supermemory.ai/v3/connections/{provider}', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
{
  "id": "<string>",
  "authLink": "<string>",
  "expiresIn": "<string>",
  "redirectsTo": "<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

Body

application/json

Configuration for the connection

Response

200
application/json

Authorization URL

The response is of type object.