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

Checking File Status

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-01-07 14:15:03

Description

Checking file status.

Request

Request Example

HEAD /api/v1/file/`{LibraryId}`/`{SpaceId}`/`{FilePath}`?access_token=`{AccessToken}`&history_id=`{HistoryId}`&user_id=`{UserId}`

Request Parameter

Request parameters.
Description
Type
Required or Not
LibraryId
Media Library ID, obtained after creating a media library in the media hosting console, see create media library
String
Yes
SpaceId
Space ID. If the media library is in single-tenant mode, this parameter is fixed as hyphen (`-`); if the media library is in multi-tenant mode, you must specify this parameter. See create tenant space for retrieval.
String
No
HistoryId
Historical version ID, used to obtain file content of different versions. If not specified, it defaults to the latest version. See view historical versions list for retrieval.
String
No
FilePath
Complete file path, such as foo/bar/file.docx. See view file details for retrieval.
String
Yes
AccessToken
Access token. For Public Read Media Library or tenant space, this parameter is not specified. Otherwise, you must specify this parameter. See generate access token for retrieval.
String
No
UserId
User identity recognition. When the access token has administrator permissions and the user identity recognition during token application is empty, it is used to temporarily assign a user identity. For details, see Generate Access Token API.
String
No

Request Body

This request does not have a request body.

Response

Response code

File exists, return HTTP 200 OK; file not found, return HTTP 404 Not Found.

Response Header

file exists:
Response Parameters
Description
Type
x-smh-type
File type
String
x-smh-creation-time
The time when the file upload is complete
String
x-smh-content-type
media type
String
x-smh-size
File size.
String
x-smh-etag
file eTag
String
x-smh-crc64
The CRC64-ECMA182 check value of the file is in string format here to avoid digit precision issues.
String
x-smh-meta-*
custom metadata
String

Response Body

The response body is the file content.

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