---
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', required

## Request body

- object — Configuration for the connection
  - `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

## Changes

- **2026-01-28** `228aa031e151` — 1 info
  - api operation id `postV3Connections:provider` removed and replaced with `postV3ConnectionsByProvider`
- **2026-01-09** `5265b03b27de` — 1 info
  - added the new enum value `gmail` to the `path` request parameter `provider`
- **2025-12-29** `7bde50443b51` — 1 info
  - added the new enum value `s3` to the `path` request parameter `provider`

[Change history](https://skmtc.dev/supermemoryai/apis/supermemory-api/changes/v3/connections/:provider/post.md)

---

[API](https://skmtc.dev/supermemoryai/apis/supermemory-api.md) · [All operations](https://skmtc.dev/supermemoryai/apis/supermemory-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supermemoryai/supermemory-api/revisions/933e00a5599b/schema)
