---
title: "Begin an MCP connector OAuth install"
method: POST
path: "/mcp-connectors/oauth/begin"
tags: ["MCP Connectors"]
---

# Begin an MCP connector OAuth install

`POST /mcp-connectors/oauth/begin`

## Request

- Base URL: `https://api.sazabi.com/v1`
- URL: `https://api.sazabi.com/v1/mcp-connectors/oauth/begin`
- Auth: none declared

Begin an OAuth browser flow to install or reconnect a preset MCP connector. Open the authorization URL in the user's browser, then poll getMcpOAuthInstallAttempt with the returned connectionId and requestId to check this attempt's completion.

## Request body

- object
  - `targetConnectionId` string, uuid: Reconnect this existing connection in place, preserving its identity and tool policy.
  - `projectId` string, uuid: Project to install into. Auto-filled from SDK context when omitted.
  - `providerId` string, required: Provider ID to install, e.g. "linear".
  - `requestedScopes` string[]: Scopes to request. Defaults to the provider's recommended scope set.
  - `serverUrl` string, uri: Server URL for multi-region providers; defaults to the provider's primary server.
  - `readOnly` boolean: Restrict the connector to read-only tools after install. Defaults to false.
  - `returnTo` string: Path to redirect the user to after OAuth completes.

## Response `201`

OK

- object
  - `requestId` string, uuid, required: This authorization attempt. Pass it when polling reconnect completion.
  - `authorizationUrl` string, required: Authorization URL to open in the user's browser.
  - `connectionId` string, uuid, required: Connection ID to poll for completion via getMcpOAuthInstallAttempt.
  - `expiresAt` string, date-time, required: When the OAuth authorization attempt expires.

## Changes

- **2026-09-18** `bf2ddbe801b3`: 2 info
  - added the new optional request property `targetConnectionId`
  - added the required property `requestId` to the response with the `201` status

[Operation history](https://skmtc.dev/sazabi/apis/sazabi-public-api/changes/mcp-connectors/oauth/begin/post.md)

---

[API](https://skmtc.dev/sazabi/apis/sazabi-public-api.md) - [All operations](https://skmtc.dev/sazabi/apis/sazabi-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sazabi/apis/sazabi-public-api/revisions/965b6230cf45?raw)
