All Products
Search
Document Center

Intelligent Media Management:RefreshWebofficeToken

更新时间:Nov 18, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Refresh Document Preview and Editing Token

Operation description

Please ensure that you fully understand the billing method and pricing of the Intelligent Media Management product before using this interface.

  • For detailed billing information, refer to the WebOffice Billing Instructions.
  • The access token expires after 30 minutes. You must open the preview before the access token expires; otherwise, you will not be able to preview.
  • The refresh token expires after 1 day. You need to call the refresh interface before the refresh token expires; otherwise, the token will become invalid.
  • The expiration time returned is in UTC, which has an 8-hour difference from Beijing Time.
Note The access token is used for actual preview session access, while the refresh token is used to reduce the parameters required for users to refresh tokens. You can use the refresh token to directly obtain a new token based on previous configurations.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
imm:RefreshWebofficeTokennone
*Project
acs:imm:{#regionId}:{#accountId}:project/{#ProjectName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectNamestringYes

Project name. For more information on how to obtain it, see Create Project.

test-project
AccessTokenstringYes

Weboffice access token. Obtain it through the GenerateWebofficeToken or RefreshWebofficeToken interfaces.

99d1b8b478b641c1b3372f5bd6********
RefreshTokenstringYes

Weboffice refresh token. Obtain it through the GenerateWebofficeToken or RefreshWebofficeToken interfaces.

a730ae0d7c6a487d87c661d199********
CredentialConfigCredentialConfigNo

If there are no special requirements, leave it blank.

Chained authorization configuration, optional. For more information, see Access Other Entity Resources Using Chained Authorization.

Response parameters

ParameterTypeDescriptionExample
object

Weboffice Access Token

RequestIdstring

Request ID.

501339F9-4B70-0CE2-AB8C-866C********
RefreshTokenstring

Weboffice refresh token.

72a52ab3702a4123ab5594671a********
AccessTokenstring

Weboffice access token.

4996466c690a4902846ce00f96********
RefreshTokenExpiredTimestring

Expiration time of the refresh token. The expiration period is 1 day.

2021-09-01T12:37:28.950065359Z
AccessTokenExpiredTimestring

Expiration time of the access token. The expiration period is 30 minutes.

2021-08-31T13:07:28.950065359Z

Examples

Sample success responses

JSONformat

{
  "RequestId": "501339F9-4B70-0CE2-AB8C-866C********",
  "RefreshToken": "72a52ab3702a4123ab5594671a********",
  "AccessToken": "4996466c690a4902846ce00f96********",
  "RefreshTokenExpiredTime": "2021-09-01T12:37:28.950065359Z",
  "AccessTokenExpiredTime": "2021-08-31T13:07:28.950065359Z"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-04-19The API operation is not deprecated.. The Error code has changedView Change Details
2023-08-30The Error code has changedView Change Details