---
title: "Create OAuth client"
method: POST
path: "/oauth/clients"
tags: ["OAuth Clients"]
---

# Create OAuth client

`POST /oauth/clients`

Registers a new OAuth client. The client secret is returned only once in the response.

## Request body

- CreateOAuthClientRequestDto
  - `name` string, required
  - `redirectUris` string[], required
  - `scopes` string
  - `trusted` boolean
  - `clientType` 'CONFIDENTIAL' | 'PUBLIC', required

## Response `200`

OK

- OAuthClientCreationResponseDto
  - `id` integer
  - `clientId` string
  - `clientSecret` string
  - `name` string
  - `redirectUris` string[]
  - `scopes` string
  - `trusted` boolean
  - `enabled` boolean
  - `clientType` 'CONFIDENTIAL' | 'PUBLIC'
  - `created` string, date-time
  - `updated` string, date-time

---

[API](https://skmtc.dev/transferz/apis/authentication-api.md) · [All operations](https://skmtc.dev/transferz/apis/authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/transferz/authentication-api/revisions/73249fb480f2/schema)
