---
title: "Create connection"
method: POST
path: "/v3/connections/{provider}"
tags: ["Connections"]
---

# Create connection

`POST /v3/connections/{provider}`

Initialize connection and get authorization URL

## Path parameters

- `provider` 'notion' | 'google-drive' | 'onedrive' | 'gmail' | 'github' | 'web-crawler' | 's3' | 'granola', required

## Request body

- object — Configuration for the connection
  - `containerTag` string
  - `containerTags` string[]
  - `documentLimit` integer
  - `metadata` object, nullable
  - `redirectUrl` string

## Response `200`

Authorization URL

- object
  - `authLink` string, required
  - `expiresIn` string, required
  - `id` string, required
  - `redirectsTo` string

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/supermemory/apis/supermemory-api.md) · [All operations](https://skmtc.net/supermemory/apis/supermemory-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/supermemory/supermemory-api/versions/e5b17ea14eaf/schema)
