> ## Documentation Index
> Fetch the complete documentation index at: https://translations.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 動的アプリケーション登録

> 事前にトークンがなくても、Auth0 にクライアントアプリケーションを動的に登録できます。

export const ResponseSchema = ({statusCode, type = "{}", children}) => {
  const [open, setOpen] = useState(false);
  return <div className="border border-gray-100 dark:border-gray-800 rounded-lg mb-3 overflow-hidden">
      <div className={`flex items-center gap-2.5 px-4 py-2.5 cursor-pointer select-none ${open ? "bg-gray-50 dark:bg-gray-800" : ""}`} onClick={() => setOpen(!open)}>
        {statusCode && <span className="border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 font-mono text-xs px-1.5 py-0.5 rounded">
            {statusCode.startsWith("default") ? "default" : statusCode}
          </span>}
        <span className="text-gray-500 dark:text-gray-400 text-sm font-mono">
          {type}
        </span>
        <span className="text-gray-400 dark:text-gray-500 text-sm italic">
          application/json
        </span>
        <svg className={`ml-auto opacity-50 transition-transform duration-200 ${open ? "rotate-180" : ""}`} width="16" height="16" viewBox="0 0 16 16" fill="none">
          <path d="M4 6l4 4 4-4" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
        </svg>
      </div>
      {open && <div className="px-4 pt-1 pb-3 border-t border-gray-100 dark:border-gray-800">
          {children}
        </div>}
    </div>;
};

<div id="endpoint">
  ## エンドポイント
</div>

`POST /oidc/register`

名前と必要なコールバックURLがあれば、Auth0 にクライアントを動的に登録できます。このリクエストにトークンは必要ありません。

<div id="body-parameters">
  ## Body パラメーター
</div>

<ParamField body="client_name" type="string">
  作成する Dynamic クライアント の名前です。
</ParamField>

<ParamField body="grant_types" type="array">
  クライアントが使用できるグラントタイプの一覧です。指定しない場合、enhanced security controls が有効な <a href="https://auth0.com/docs/get-started/applications/third-party-applications">Third Party Apps</a> には、デフォルトで `authorization_code` グラントタイプが適用されます。
</ParamField>

<ParamField body="redirect_uris" type="array" required>
  Authentication flow の最後に Auth0 が有効な呼び出し先と見なす URL の配列です。
</ParamField>

<ParamField body="token_endpoint_auth_method" type="string">
  トークンエンドポイントでの認証に使用する方式です。
</ParamField>

<div id="response-schema">
  ## レスポンススキーマ
</div>

<ResponseSchema>
  <ResponseField name="client_name" type="string">
    新たに登録されたクライアントの名前。
  </ResponseField>

  <ResponseField name="client_id" type="string">
    クライアントの一意の識別子。
  </ResponseField>

  <ResponseField name="client_secret" type="string">
    クライアントシークレット。
  </ResponseField>

  <ResponseField name="client_secret_expires_at" type="integer">
    クライアントシークレットの有効期限の時刻。
  </ResponseField>
</ResponseSchema>

<div id="response-messages">
  ## レスポンスメッセージ
</div>

| ステータス | 説明                 |
| ----- | ------------------ |
| 200   | クライアントの詳細を含む正常な応答。 |
