Open Platform
Skip to content

Refresh access token ​

https://cnapi.sciener.com/oauth2/token

When access token expired, you can refresh it by this api, the refresh_token is returned by Get Access Token, the valid period of refresh token is 10 years since it's created.

1 Request example ​

POST, ContentType:application/x-www-form-urlencoded

javascript
curl --location -g --request POST 'https://cnapi.sciener.com/oauth2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'clientId=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--data-urlencode 'clientSecret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--data-urlencode 'grant_type=refresh_token' \
--data-urlencode 'refresh_token=1bd2a21a7df889630f444364813738d7'

2 Request parameters ​

NameRequiredParameter valueDescription
clientIdYclientId from Create application
clientSecretYclientSecret from Create application
grant_typeYrefresh_tokengrant type, value: refresh_token
refresh_tokenYrefresh token

3 Response and example ​

NameTypeRequest parameters
access_tokenStringAccess token
expires_inIntExpire time of access token, in second.
refresh_tokenStringRefresh token
{
    "access_token": "39caac89b0b51c980aa61ad4264b693b",
    "refresh_token": "1bd2a21a7df889630f444364813738d7",
    "expires_in": 7776000
}
CopyRight © 2012-2026 Sciener.All Rights Reserved