---
title: "Register OAuth client"
method: POST
path: "/admin/oauth-clients"
tags: ["OAuth Clients"]
---

# Register OAuth client

`POST /admin/oauth-clients`

Register a new OAuth client for third-party application integration.

The generated ``client_id`` and ``client_secret`` are returned in the
response. The secret is shown only once — store it securely.

## Request body

- OAuthClientCreateRequest — Request body for creating an OAuth client.
  - `allowed_scopes` string[], nullable — If set, restricts which scopes this client may request. An empty list denies all non-OIDC scopes. Null means unrestricted (all scopes permitted).
  - `consent_model` 'user' | 'agent' — What a user's consent grants for this client. ``user`` keeps today's act-as-user semantics; ``agent`` marks the client for agent-bound consent (the MCP path).
  - `description` string, nullable — Optional description of the client.
  - `name` string, required — Human-readable name for the client.
  - `redirect_uris` string[], required — Allowed OAuth callback URLs. At least one required.
  - `require_consent` boolean — Whether to show a consent screen during authorization. Set to false for trusted first-party integrations.
  - `token_endpoint_auth_method` 'client_secret_basic' | 'none' — Client authentication method at the token endpoint. ``client_secret_basic`` creates a confidential client with a generated secret; ``none`` creates a public (secret-less) client that relies on PKCE alone — no secret is generated or returned.

## Response `201`

Successful Response

- OAuthClientCreateResponse — Returned on creation — includes the one-time plaintext client secret.
  - `active` boolean, required
  - `allowed_scopes` string[], nullable, required — Scopes this client may request. Null means unrestricted.
  - `approval_status` string, required — Admin approval lifecycle: ``pending``, ``approved``, or ``denied``. Only approved clients may enter OAuth flows; ``active`` remains the independent kill switch.
  - `client_id` string, required — Public client identifier used in OAuth flows.
  - `client_secret` string, nullable, required — The client secret. Shown only once at creation — store it securely. Null for public (secret-less) clients.
  - `consent_model` string, required — What a user's consent grants for this client: ``user`` or ``agent``.
  - `created_at` string, date-time, required
  - `created_by` string, nullable, required
  - `description` string, nullable, required
  - `id` string, required — Internal ID (ksuid).
  - `name` string, required
  - `redirect_uris` string[], required
  - `registration_source` string, required — How the client entered the registry: ``admin`` or ``dcr``.
  - `require_consent` boolean, required — Whether a consent screen is shown during authorization.
  - `software_id` string, nullable, required — RFC 7591 software identifier claimed at registration, if any.
  - `token_endpoint_auth_method` string, required — Client authentication method at the token endpoint: ``client_secret_basic`` (confidential) or ``none`` (public, PKCE-only).
  - `updated_at` string, date-time, nullable, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Unprocessable Entity
- `500` — Internal Server Error
- `503` — Service Unavailable

## Changes

- **2026-09-01** `52699e827836` — 1 breaking, 7 info
  - response property `client_secret` list-of-types was widened by adding types `null` to media type `application/json` of response `201`
  - added the new optional request property `consent_model`
  - added the new optional request property `token_endpoint_auth_method`
  - added the required property `approval_status` to the response with the `201` status
  - …4 more
- **2026-08-31** `170ab6ea6e23` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/jentic/apis/jentic-control-plane-api/changes/admin/oauth-clients/post.md)

---

[API](https://skmtc.dev/jentic/apis/jentic-control-plane-api.md) · [All operations](https://skmtc.dev/jentic/apis/jentic-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jentic/jentic-control-plane-api/revisions/dceddff07ff7/schema)
