---
title: "Register an OAuth2 client (Dynamic Client Registration, RFC 7591)"
method: POST
path: "/v1/oauth/register/"
---

# Register an OAuth2 client (Dynamic Client Registration, RFC 7591)

`POST /v1/oauth/register/`

## Request

- Base URL: `https://app.iconik.io/API/auth`
- URL: `https://app.iconik.io/API/auth/v1/oauth/register/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/iconik/apis/iconik-auth/docs/v1/oauth/register/post.ts> (a function with typed inputs; its response is checked against the schema)

<br/>For marketplace MCP clients that don't use a Client ID Metadata Document.<br/>Public clients only (no client_secret), with allowlisted redirect URIs.<br/>The same redirect URIs always get the same client_id. A domain gets an app<br/>for the client when one of its admins approves it at /oauth/authorize/.

## Request body

- OAuthClientRegistrationSchema
  - `client_name` string, nullable
  - `client_uri` string, url, nullable
  - `grant_types` string[]
  - `redirect_uris` string[], required
  - `response_types` string[]
  - `token_endpoint_auth_method` 'none'

## Response `201`

The client was registered

- OAuthClientRegistrationResponseSchema
  - `client_id` string, required
  - `client_id_issued_at` integer, required
  - `client_name` string, nullable
  - `client_uri` string, nullable
  - `grant_types` string[], required
  - `redirect_uris` string[], required
  - `response_types` string[], required
  - `token_endpoint_auth_method` string, required

## Other responses

- `400`: invalid_redirect_uri when a redirect_uri is not allowlisted, invalid_client_metadata for any other unsupported metadata
- `404`: Dynamic Client Registration is disabled
- `default`: Error response

---

[API](https://skmtc.dev/iconik/apis/iconik-auth.md) - [All operations](https://skmtc.dev/iconik/apis/iconik-auth/llms.txt) - [OpenAPI document](https://skmtc.dev/iconik/apis/iconik-auth/revisions/5dde985bb742?raw)
