---
title: "Create OAuth configuration"
method: POST
path: "/projects/{id}/oauth/configs"
tags: ["OAuth Configuration"]
---

# Create OAuth configuration

`POST /projects/{id}/oauth/configs`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/oauth/configs`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Configure OAuth provider (Google, GitHub, Microsoft, Apple, Device)

## Path parameters

- `id` string, uuid, required

## Request body

- CreateOAuthConfigRequest
  - `provider` 'google' | 'github' | 'microsoft' | 'apple' | 'device', required
  - `client_id` string: Required for non-device providers. Must not be provided for `provider=device`; server always auto-generates it.
  - `client_secret` string: Required for non-device providers. Must not be provided for `provider=device`; server always auto-generates it.
  - `redirect_url` string, uri: Required for non-device providers. Not used for `provider=device`.
  - `scopes` string[]: Optional for non-device providers, uses provider defaults if omitted. Not used for `provider=device`.

## Response `201`

OAuth config created

- OAuthConfig
  - `id` string, uuid
  - `provider` 'google' | 'github' | 'microsoft' | 'apple' | 'device'
  - `client_id` string
  - `client_secret` string: Masked in responses (shows only first/last 4 chars)
  - `enabled` boolean
  - `redirect_url` string, uri
  - `scopes` string[]
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `409`: Provider already configured

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 4 breaking, 13 info
  - added the new path request parameter `id`
  - added the new required request property `provider`
  - the request's body type changed from no type to `object`
  - the response's body type changed from no type to `object` for status `201`
  - …13 more
- **2026-08-27** `bb44e98aba2e`: 2 breaking, 15 warning
  - the request's body type changed from `object` to no type
  - the response's body type changed from `object` to no type for status `201`
  - deleted the `path` request parameter `id`
  - removed the request property `client_id`
  - …13 more

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/oauth/configs/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
