---
title: "Create an OAuth connection"
method: POST
path: "/public/v1/connections/oauth"
tags: ["Connections"]
---

# Create an OAuth connection

`POST /public/v1/connections/oauth`

Creates a pending OAuth connection and returns a provision URL.
Present the provision URL to the user to complete the OAuth consent flow.

## Request body

- CreateOAuthConnectionRequest
  - `name` string, required
  - `settingType` string, required — Must be an OAuth provider type
  - `scopes` string[]

## Response `201`

OAuth connection created with provision URL

- OAuthProvisionResponse
  - `connectionId` string, required
  - `provisionUrl` string, required — URL to present to the user to complete the OAuth consent flow

## Other responses

- `400` — Bad request
- `401` — Missing or invalid API key
- `403` — API key lacks required scope

---

[API](https://skmtc.net/clone-global/apis/cloneforce-platform-api.md) · [All operations](https://skmtc.net/clone-global/apis/cloneforce-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clone-global/cloneforce-platform-api/versions/0841f04b6bd8/schema)
