SView Help Center
English (US)

刷新AccessToken

Author: sviewngts Last Updated: 2026-08-25 16:26
AccessToken即将过期时调用此接口刷新令牌,获取新Token
接口名 POST: /auth/oauth2/token

 

入参:(body传值)
application/x-www-form-urlencoded
是否必传 默认值 描述 备注
refresh_token 是 - refresh_token 登录成功后返回的refresh_token
grant_type 是 refresh_token   固定值:refresh_token
scope 是 server   固定值:server
入参:(Header传值)
Authorization 是 - 客户端标识 格式:Basic base64(clientId:clientSecret)
Content-Type 是 - Content-Type application/x-www-form-urlencoded
回参示例:(application/json)

 

{
    "access_token": "c0c15ec8-abxxxxxxx-d1bc8434e465", // 新生成的token
    "refresh_token": "IAIK__8LVShcOxxxxxxxxzcv2Y8-GqWleKt9KJWQ3tumaDWWWskECxxxxxxxxxxxNXtocIUQsOshAp2bGJifhyR_SyUPcMb63XhLPKOaQMd-QkmP4O23fwRL",
    "scope": "server",
    "token_type": "Bearer",
    "expires_in": 43199 //新token有效期(秒)
}