---
title: "Register a new OAuth app"
method: POST
path: "/oauth/register"
tags: ["oauth"]
---

# Register a new OAuth app

`POST /oauth/register`

## Request body

- object
  - `redirect_uris` string[]
  - `client_name` string
  - `client_uri` string, uri
  - `logo_uri` string, uri
  - `scope` string
  - `contacts` string[]
  - `token_endpoint_auth_method` 'client_secret_basic' | 'none' | 'client_secret_post'
  - `software_id` string
  - `software_version` string

## Response `201`

Details of the OAuth app that was created

- object
  - `client_id` string, required
  - `client_secret` string
  - `client_id_issued_at` number, required
  - `client_secret_expires_at` number, required
  - `redirect_uris` string[], required
  - `client_name` string
  - `client_uri` string, uri
  - `logo_uri` string, uri
  - `scope` string, required
  - `grant_types` string[], required
  - `contacts` string[]
  - `token_endpoint_auth_method` 'client_secret_basic' | 'none' | 'client_secret_post'
  - `software_id` string
  - `software_version` string

---

[API](https://skmtc.net/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.net/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/huggingface/hub-api-endpoints/versions/dae0cc3790f0/schema)
