tencent cloud

Smart Media Hosting

Renew an Access Token

下载
聚焦模式
字号
最后更新时间: 2026-01-07 14:42:34

Description

Renew the Access Token.
Note:
Renewal does not support specifying a new validity period and only renews based on the validity period specified when the token is obtained.

Request

Request Example

POST /api/v1/token/`{LibraryId}`/`{AccessToken}`

Request Parameter

Request parameters.
Description
Type
Required or Not
LibraryId
Media Library ID, obtain it after creating a media library in the media hosting console. See Create Media Library
String
Yes
AccessToken
Access token, see Generate Access Token
String
Yes

Response

Response code

Renewal successful, back HTTP 200 OK.

Response Body

{ "accessToken": "acctk01f7af4f07me88u2svxwp9tszuekqlprquuejxxxxxx", "expiresIn": 86400 }
Field description in response body:
Node Name (Keyword)
Description
Type
accessToken
Access token value
String
expiresIn
Valid duration of the access token, unit: seconds
Int

Error Codes

This request operation has no special error messages. For common error messages, see Error Codes.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈