Skip to main content

Refresh Access Token

Call this to get a new access_token before the old access_token expires. The old access_token will be invalidated after a successful call.

Lasted 2022-04-21

Request

Basic Information
HTTP URL/v1/token/refresh
HTTP MethodGET
PermissionNot required

Request Headers

NameTypeRequiredDescription
AuthorizationstringYes

Request Parameters

NameTypeRequiredDescriptionExample
expired_atstringYesExpiration timestamp, formatted according to ISO8601 specification2023-04-14T12:13:57.859Z

Response

Response Body

NameTypeDescription
codeintError code, non-zero means failure
msgstringError message
dataobject
∟tokenstringnew access_token
∟expired_atstringaccess_token expired time
∟issued_atstringissued time
∟account_infoobjectuser info
∟∟member_idstringuser id
∟∟aaidstringaaid
∟∟account_channelstringaccount_channel

Response Example

{
"code": 0,
"message": "",
"data": {
"token": "xxxxxx",
"expired_at": "2022-05-14T12:13:57.859Z",
"issued_at": "2022-04-14T12:13:57.859Z",
"account_info": {
"member_id": 123,
"aaid": 13,
"account_channel": "lb"
}
}
}