---
title: "POST /api/login/oauth/refresh_token"
method: POST
path: "/api/login/oauth/refresh_token"
tags: ["Token API"]
---

# POST /api/login/oauth/refresh_token

`POST /api/login/oauth/refresh_token`

refresh OAuth access token

## Query parameters

- `grant_type` string, required
- `refresh_token` string, required
- `scope` string, required
- `client_id` string, required
- `client_secret` string

## Response `200`

The Response object

## Other responses

- `400` — The Response object
- `401` — The Response object

## Changes

- **2022-07-01** `52cacbf3790a` — 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
- **2022-03-18** `3ce819e8c324` — 1 info
  - the `query` request parameter `client_secret` became optional
- **2022-03-02** `46deb72947f6` — 1 info
  - api tag `Token API` added
- **2022-02-18** `cb092f825446` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/casdoor/apis/casdoor-restful-api/changes/api/login/oauth/refresh_token/post.md)

---

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