Skip to main content

Refresh Token

Type: GET

Description: /public/uaa/oauth2/token?client_id={client_id}&client_secret=${client_secret}&grant_type={grant_type}&refresh_token={refresh_token}

Parameters

nametypemandatorydefaultdescriptionranges
client_idstringtrueInstitutional identityPlease apply to XT.COM
client_secretstringtrueInstitutional Secret KeyPlease apply to XT.COM
grant_typestringtrueAuthorization type, fixed valuerefresh_token
refresh_tokenstringtrueThe refresh_token field returned when applying for token

Response Example

Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": {
"user_id": "12345678",
"access_token": "eyJhbGciOiJSUzI1NiJ9....", // Token used to access the authorization interface
"refresh_token": "eyJhbGciOiJSUzI1NiJ9....", // Token used to refresh the access token
"expires_in": 15551999, // The number of milliseconds before the access_token expires
"refresh_expires_in": 18143999, // The number of milliseconds before refresh_token expires
"client_id": "35LF2FSLHX5IRQA4", // Institutional identity
"scope": "userinfo" // Authorized scope
}
}