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

# アクセストークンをリフレッシュする

> 認可中に取得したリフレッシュトークンを使用して、アクセストークンをリフレッシュするためにこのエンドポイントを使用します。

`POST /oauth/token`

認可中に取得したリフレッシュトークンを使用して、アクセストークンをリフレッシュするためにこのエンドポイントを使用します。
詳しく学ぶ

* [リフレッシュトークン](https://auth0.com/docs/ja-jp/secure/tokens/refresh-tokens)

## Parameters

<div className="prose-sm prose-gray dark:prose-invert">
  <span data-as="p">要求本文は`application/x-www-form-urlencoded`形式です。</span>
</div>

<ParamField body="grant_type" type="string">
  使用されるフローを指定します。アクセストークンを更新するには、これを`refresh_token`に設定する必要があります。
</ParamField>

<ParamField body="client_id" type="string">
  要求を行うアプリケーションを特定する、アプリケーションのクライアントIDです。
</ParamField>

<ParamField body="client_secret" type="string">
  アプリケーションのクライアントシークレット。トークンエンドポイントの認証方法が`Post`または`Basic`に設定されている場合は、必須。
</ParamField>

<ParamField body="refresh_token" type="string">
  クライアントに以前発行されたリフレッシュトークン。このトークンは、新しいアクセストークンを取得するために使用されます。
</ParamField>

<ParamField body="scope" type="string">
  要求されたスコープ権限のスペース区切りのリスト。省略した場合は、元のスコープが使用されます。それ以外の場合は、スコープの数を減らして要求することができます。これにはURLエンコードが必要です。
</ParamField>

## Response

| Status | Description                                 |
| ------ | ------------------------------------------- |
| 200    | 正常にリフレッシュされたアクセストークンです。                     |
| 400    | 不正な要求です。必要なパラメーターが不足しているか、形式に誤りがあります。       |
| 401    | 認可されていません。クライアント資格情報が無効、またはリフレッシュトークンが無効です。 |
| 403    | 禁止されています。リフレッシュトークンが無効または期限切れです。            |
