---
title: "Create Oauth"
method: POST
path: "/api/v1/oauth"
tags: ["Oauth"]
---

# Create Oauth

`POST /api/v1/oauth`

Create by json config

## Request body

- D7yIoDragonflyV2ManagerTypesCreateOauthRequest
  - `bio` string
  - `client_id` string, required
  - `client_secret` string, required
  - `name` 'github' | 'google', required
  - `redirect_url` string

## Response `200`

OK

- D7yIoDragonflyV2ManagerModelsOauth
  - `bio` string
  - `client_id` string
  - `client_secret` string
  - `created_at` string
  - `id` integer
  - `is_del` integer
  - `name` string
  - `redirect_url` string
  - `updated_at` string

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/dragonflyoss/apis/dragonfly-manager.md) · [All operations](https://skmtc.net/dragonflyoss/apis/dragonfly-manager/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dragonflyoss/dragonfly-manager/revisions/d9b0d442c9f4/schema)
