Skip to content

Refresh Token

API Address:/v2/quecauth/accessKeyAuthrize/refreshToken

Request Method:GET

Request Data Type:application/json

Response Data Type:*/*

API Description:

● If the token has been refreshed within the last 30 minutes or was created within the last 30 minutes, the original token is returned;
● If the user or AccessKey is disabled, the refresh will fail and the original token will be disabled.

Request Parameters:

Parameter NameParameter DescriptionRequest TypeRequiredData TypeSchema
refresh_tokenToken to be refreshedquerytrueString
grant_typeAuthorization type, fixed as "refresh_token"querytrueString
scopeAuthorization scope. When this value is empty, it means requesting all functional scopes. When there are multiple scopes, separate them with spaces, e.g.: userinfo tls otaqueryfalseString

Response Parameters:

Parameter NameParameter DescriptionTypeSchema
codeError code, 200 represents success, others are error codesint
msgResult message, returns "OK" on successString
access_tokenReturns token value on successString
token_typeFixed as "jwt"String
expire_inExpiration timeString

Response Example:

javascript
{
  "msg": "",
  "access_token": "QJWT eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyOTQ5NCIsImlhdCI6MTYxODQ3Mjk2MiwianRpIjoiYjVhMmRhNjgtMzI0Ni00ZWRjLWEwZTktOTEyZjdjMDFkMmMzIiwidXR5IjoicGVyIiwiZXhwIjoxNjE4NTU5MzYyLCJhbSI6IkFjY2Vzc0tleSIsInNwIjoiIn0.JUQjUKlaDepazh7JssvRZKDiA1UL83VK8WECj86TI_I",
  "code": 200,
  "scope": "userinfo",
  "token_type": "jwt",
  "expires_in": 86400
}