---
title: "Start OAuth authorization (redirects to the identity provider)"
method: GET
path: "/api/actions/connector/{connectorId}/oauth/start"
tags: ["connectors"]
---

# Start OAuth authorization (redirects to the identity provider)

`GET /api/actions/connector/{connectorId}/oauth/start`

## Request

- Base URL: `https://localhost:5601`
- URL: `https://localhost:5601/api/actions/connector/{connectorId}/oauth/start`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP basic

**Spaces method and path for this operation:**

<div><span class="operation-verb get">get</span>&nbsp;<span class="operation-path">/s/{space_id}/api/actions/connector/{connectorId}/oauth/start</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

[Required authorization] Route required privileges: actions:oauth.

## Path parameters

- `connectorId` string, required

## Other responses

- `302`: Redirects to the identity provider to begin OAuth authorization.
- `400`: Invalid request, such as a disallowed returnUrl.
- `401`: User is not authenticated.
- `404`: Connector not found.

---

[API](https://skmtc.dev/elastic/apis/kibana-apis.md) - [All operations](https://skmtc.dev/elastic/apis/kibana-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/elastic/apis/kibana-apis/revisions/514417f60094?raw)
