> ## 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.

# トークン情報の取得

> JWT を検証して関連するユーザープロフィールを返す非推奨のエンドポイントです。代わりに /userinfo を使用してください。

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 /tokeninfo`

<Note>
  このエンドポイントはレガシー認証パイプラインの一部であり、最新の OIDC 準拠パイプラインを使用している場合は無効化されます。代わりに、[/userinfo エンドポイント](#get-user-info) の使用を推奨します。最新の認証パイプラインの詳細については、[Introducing OIDC Conformant Authentication](/ja/api-auth/intro) を参照してください。
</Note>

このエンドポイントは JSON Web Token (JWT) (署名と有効期限) を検証し、トークンの `sub` プロパティで指定されたユーザー ID に関連付けられたユーザー情報を返します。

<div id="remarks">
  ### 備考
</div>

* このエンドポイントは、レート制限に関する情報を含む 3 つの HTTP レスポンスヘッダーを返します。
  * `X-RateLimit-Limit`: 1 分あたりに許可されるリクエスト数。
  * `X-RateLimit-Remaining`: 利用可能なリクエスト数。新しいリクエストがあるたびに、この数は 1 ずつ減少します。1 分経過するごとにリクエスト数が 1 ずつ回復するため、この数もそのたびに 1 ずつ増加します。
  * `X-RateLimit-Reset`: レート制限 (`X-RateLimit-Limit`) がリセットされるまでの残り時間。値は [UTC エポック秒](https://en.wikipedia.org/wiki/Unix_time)です。

<div id="learn-more">
  ### 詳細情報
</div>

* [ユーザープロファイルの構造](https://auth0.com/docs/manage-users/user-accounts/user-profiles/user-profile-structure)
* [Auth0 API レート制限ポリシー](https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy)

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

<ResponseSchema>
  <ResponseField name="email_verified" type="boolean">
    ユーザーのメールアドレスが確認済みかどうかを示します。
  </ResponseField>

  <ResponseField name="email" type="string">
    ユーザーのメールアドレスです。
  </ResponseField>

  <ResponseField name="clientID" type="string">
    トークンに関連付けられたクライアントIDです。
  </ResponseField>

  <ResponseField name="updated_at" type="string">
    ユーザー情報が最後に更新された時刻です。
  </ResponseField>

  <ResponseField name="name" type="string">
    ユーザーの氏名です。
  </ResponseField>

  <ResponseField name="picture" type="string">
    ユーザーのプロフィール画像のURLです。
  </ResponseField>

  <ResponseField name="user_id" type="string">
    ユーザーの一意の識別子です。
  </ResponseField>

  <ResponseField name="nickname" type="string">
    ユーザーのニックネームです。
  </ResponseField>

  <ResponseField name="provider" type="string">
    ユーザーのIDプロバイダーです。
  </ResponseField>

  <ResponseField name="connection" type="string">
    ユーザーの認証に使用された接続です。
  </ResponseField>

  <ResponseField name="isSocial" type="boolean">
    ユーザーがソーシャルプロバイダー経由で認証したかどうかを示します。
  </ResponseField>

  <ResponseField name="created_at" type="string">
    ユーザーが作成された時刻です。
  </ResponseField>

  <ResponseField name="global_client_id" type="string">
    グローバルクライアントIDです。
  </ResponseField>
</ResponseSchema>

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

| ステータス | 説明                |
| ----- | ----------------- |
| 200   | ユーザー情報を含む正常なレスポンス |
