Refresh Access Token
Refresh the accessToken
using the refreshToken
. If the current token has expired, this API allows you to obtain a new accessToken
using the refreshToken
, eliminating the need to repeat the entire authentication process.
Host URL
Endpoint
POST auth/api/token/refreshAccessToken
- Rate limit: 500 requests per day.
Request Body
{
"refreshToken": "xxxxxxxxxx"
}
Request Parameters
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | Yes | Request payload |
» refreshToken | body | string | Yes | Refresh token |
Response Example
Status code 200 OK
{
"code": "string",
"msg": "string",
"data": {
"accessToken": "string",
"expiresIn": 0,
"type": "string"
}
}
Response Structure
Name | Type | Required | Description |
---|---|---|---|
code | string | Yes | Status code |
msg | string | Yes | Message |
data | object | Yes | Data object |
» accessToken | string | Yes | New access token |
» expiresIn | integer | Yes | Token expiration time |
» type | string | Yes | Token type |