---
title: "Register Client"
method: POST
path: "/oauth2/register"
tags: ["internal"]
---

# Register Client

`POST /oauth2/register`

## Request

- Base URL: `https://api.companydata.dk` (the document declares no server; this is the origin it was published from)
- URL: `https://api.companydata.dk/oauth2/register`
- Auth: none declared

OAuth 2.0 Dynamic Client Registration (RFC 7591).

Open registration so MCP clients (e.g. Claude) can self-register — this grants
nothing on its own; a user must still log in and consent. Public by default
(token_endpoint_auth_method=none, PKCE); a secret is issued only if a
confidential method is requested.

## Request body

- ClientRegistrationRequest: RFC 7591 Dynamic Client Registration request (subset we honor).
  - `redirect_uris` string[], required
  - `client_name` string, nullable
  - `grant_types` string[], nullable
  - `response_types` string[], nullable
  - `token_endpoint_auth_method` string, nullable
  - `scope` string, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
