Refresh Access Token

Request a new Access Token with the Refresh Token.

Request Format

GET https://{apigw-address}/app-portal-service/v2.0/token/refresh

Request Parameters (URI)

Name

Location (Path/Query)

Required or Not

Data Type

Description

refreshToken

Query

true

String

Refresh Token. Refer to Choose Organization to learn how to get Refresh Token.

Response Parameters

Name

Data Type

Description

data

data struct

null

data Struct

Name

Data Type

Description

userId

String

User ID

userName

String

User name

currentOrgId

String

Current organization ID

currentOrgName

String

Current organization name

accessToken

String

New Access Token, represented as Bearer Token

refreshToken

String

New Refresh Token

refreshTokenExpire

String

Refresh Token expiration time in UTC format. For time formats, refer to ISO8601 Standard Time Formats Used by UTC

Sample

Request Sample

GET
https://{apigw-address}/app-portal-service/v2.0/token/refresh?refreshToken=yourRefreshToken

Return Sample

{
  "code": 200,
  "message": "",
  "data": {
    "userId": "yourUserId",
    "userName": "portal_demo",
    "currentOrgId": "yourOrgId",
    "currentOrgName": "Portal Demo",
    "accessToken": "APP_PORTAL_S_w35R99d92ZX4McYQJQvWp42ydjdj3MjK",
    "refreshToken": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1MTU1ODkzMTYxMDkwOTEiLCJhZG1pbkxldmVsIjoyLCJpc3MiOiJBUFAtUE9SVEFMIiwid29ya2luZ09yZ2FuaXphdGlvbklkIjoibzE1NTg5MzA4OTQ0NzgxIiwidXNlck5hbWUiOiJwb3J0YWxfZGVtbyIsIndvcmtpbmdPcmdhbml6YXRpb25OYW1lIjoiUG9ydGFsIERlbW8iLCJleHAiOjE1NzEzNjgzMTUsInVzZXJJZCI6InUxNTU4OTMxNjEwOTA5MSIsImlhdCI6MTU2ODc3NjMxNSwianRpIjoiand0X2lkIn0.XmFet0419rGX6EgKoNjjek6JlYPbeCXWdRrKxY9wwWs",
    "refreshTokenExpire": 1571368315000
  }
}