---
title: "Register an OAuth client"
method: POST
path: "/api/oauth/register"
tags: ["OAuth"]
---

# Register an OAuth client

`POST /api/oauth/register`

## Request

- Base URL: `https://git.cafe`
- URL: `https://git.cafe/api/oauth/register`
- Auth: none required

Registers a public OAuth client. Client metadata management is not advertised until it is configured.

## Request body

- object
  - `client_name` string, required
  - `redirect_uris` string[], required
  - `application_type` 'web' | 'native'
  - `token_endpoint_auth_method` 'none'
  - `grant_types` string[]

## Response `201`

Response for status 201

- object
  - `client_name` string, required
  - `redirect_uris` string[], required
  - `application_type` 'web' | 'native', required
  - `token_endpoint_auth_method` 'none', required
  - `grant_types` string[], required
  - `client_id` union, required
    - string
    - string, uri
  - `client_id_issued_at` integer, required

## Other responses

- `400`: Response for status 400
- `429`: A rate limit is exhausted. Wait Retry-After seconds; the value is a hint, so back off on a repeat 429.

---

[API](https://skmtc.dev/gitcafe/apis/git-cafe-api.md) - [All operations](https://skmtc.dev/gitcafe/apis/git-cafe-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitcafe/apis/git-cafe-api/revisions/9fa233d2986d?raw)
