---
title: "Initialize OAuth Flow"
method: POST
path: "/api/v1/oauth/init"
tags: ["login"]
---

# Initialize OAuth Flow

`POST /api/v1/oauth/init`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/oauth/init`
- Auth: none declared

Get OAuth authorization URL for a provider

## Request body

- UsersOAuthInitRequest
  - `provider` string

## Response `200`

OK

- UsersOAuthInitResponse
  - `authUrl` string
  - `provider` string

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/nife/apis/nife-io-swagger-api.md) - [All operations](https://skmtc.dev/nife/apis/nife-io-swagger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nife/apis/nife-io-swagger-api/revisions/6e868dc62795?raw)
