> For the complete documentation index, see [llms.txt](https://docs.ellipsis-drive.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ellipsis-drive.com/developers/api-v3/oauth/refresh-token-variant.md).

# Refresh token variant

| **Description** | Exchanges a refresh token for a new access token. |
| --------------- | ------------------------------------------------- |
| **Endpoint**    | `/oauth/token`                                    |
| **Method**      | POST                                              |

### Parameters

| Name            | Description                                                                                                                                                                            | Required |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| `grant_type`    | Must be "refresh\_token" to emphasize that you are trying to exchange a refresh token.                                                                                                 |          |
| `client_id`     | The client id given during the client registration. Alternatively this can be supplied using the Basic HTTP header with the client\_id as username and client\_secret as password.     |          |
| `client_secret` | The client secret given during the client registration. Alternatively this can be supplied using the Basic HTTP header with the client\_id as username and client\_secret as password. |          |
| `refresh_token` | The refresh token from the access token to refresh.                                                                                                                                    |          |
