---
title: "Start plugin OAuth"
method: POST
path: "/v1/environments/{environment_id}/plugins/{plugin_id}/oauth/start"
tags: ["Plugins"]
---

# Start plugin OAuth

`POST /v1/environments/{environment_id}/plugins/{plugin_id}/oauth/start`

## Request

- Base URL: `https://api.replicas.dev`
- URL: `https://api.replicas.dev/v1/environments/{environment_id}/plugins/{plugin_id}/oauth/start`
- Auth: HTTP bearer

Returns an `authorization_url` for a person to open. The connection is saved when they approve. The authorization is tied to a person, so this needs a personal API key or the app. Requires write access to the environment.

## Path parameters

- `environment_id` string, required
- `plugin_id` string, required

## Headers

- `X-Replicas-Api-Version` '2026-10-07'

## Response `200`

Success

- PluginStartOAuthResponse
  - `authorization_url` string, uri, required

## Other responses

- `400`: Bad request - Missing or invalid parameters
- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden - The authenticated account cannot access this resource
- `404`: Resource not found
- `500`: Internal server error

---

[API](https://skmtc.dev/replicas/apis/replicas-api.md) - [All operations](https://skmtc.dev/replicas/apis/replicas-api/llms.txt) - [OpenAPI document](https://skmtc.dev/replicas/apis/replicas-api/revisions/2703ac1c9cb7?raw)
