tencent cloud

Smart Media Hosting

Product Introduction
Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
Purchase Guide
Quick Start
Create Media Library
Initiate request
Service Level API Document
History
Introduction
API Category
Making API Requests
PaaS Service APIs
Official Cloud Disk APIs
Data Types
Error Codes
Business Level API Document
Introduction
Access Token Operation API
Tenant Space Operation API
File Operation API
Directory or Album Operation API
Recycle Bin Operation API
Quota Operation API
Query Task Operation API
Search Operation API
Historical Version Operations API
Directory and File Batch Operation API
Collection Operation API
Error Codes
SDK Documentation
Android SDK
iOS SDK
HarmonyOS SDK
FAQs
Enterprise Network Disk
Product Introduction
Purchase Guide
Quick Start
FAQs
Service Level Agreement
Glossary

Renew an Access Token

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 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.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan