---
title: "OAuth 2.1 dynamic client registration"
method: POST
path: "/api/oauth/register"
tags: ["OAuth"]
---

# OAuth 2.1 dynamic client registration

`POST /api/oauth/register`

## Request

- Base URL: `https://intentdocs.com`
- URL: `https://intentdocs.com/api/oauth/register`
- Auth: none declared

Register a new OAuth client and receive client credentials.

## Request body

- object
  - `redirect_uris` string[], required: Registered redirect URIs
  - `client_name` string
  - `client_uri` string
  - `token_endpoint_auth_method` 'none' | 'client_secret_post'
  - `grant_types` string[]
  - `response_types` string[]

## Response `201`

Client registered successfully

- object
  - `client_id` string
  - `client_secret` string: Only present for confidential clients (token_endpoint_auth_method != 'none')
  - `client_id_issued_at` number
  - `client_secret_expires_at` number
  - `redirect_uris` string[]
  - `client_name` string
  - `client_uri` string

## Other responses

- `400`: Invalid registration request

---

[API](https://skmtc.dev/intentdocs/apis/intentdocs-api.md) · [All operations](https://skmtc.dev/intentdocs/apis/intentdocs-api/llms.txt) · [OpenAPI document](https://skmtc.dev/intentdocs/apis/intentdocs-api/revisions/28abdea021d0?raw)
