---
title: "POST /oauth2/provider/register"
method: POST
path: "/oauth2/provider/register"
---

# POST /oauth2/provider/register

`POST /oauth2/provider/register`

Initiates the OAuth registration flow with a third-party provider. Returns a redirect URL and CSRF state token for completing the authorization.

## Request body

- object
  - `provider` 'GITHUB' | 'GITLAB' | 'BITBUCKET' | 'CONFLUENCE', required — Third-party provider type.

## Response `200`

Success

- InitiateProviderRegistrationOutput
  - `redirectTo` string, required — The URL to redirect the user to for completing the OAuth authorization.
  - `csrfState` string, required — The CSRF state token to use when completing the OAuth flow.

## Other responses

- `480` — ResourceNotFoundException
- `481` — InternalServerException
- `482` — ValidationException
- `483` — ConflictException
- `484` — ThrottlingException
- `485` — AccessDeniedException

---

[API](https://skmtc.net/aws/apis/securityagent.md) · [All operations](https://skmtc.net/aws/apis/securityagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/securityagent/versions/cad56717d636/schema)
