File ManagementCall Method

Call Method

File Management APIs are called via HTTPS. All responses are in JSON format.

Basic Information

API Prefix
/
Protocol
HTTPS (HTTP not supported)
Response Format
JSON (Content-Type: application/json)
Character Encoding
UTF-8

Environment Domains

EnvironmentDomainDescription
Testhttps://file.test.sign.tencent.comFor development and testing
Productionhttps://sgfile.tencent-esign.comProduction environment

Full request URL, e.g.:

POST https://sgfile.tencent-esign.com/

Header Settings

All File Management API requests must include the following Header parameters:

Authorization必填string
Authentication token. Format: Bearer <access_token>. Obtain access_token via OAuth 2.0. See Authentication for details.
X-TC-Action必填string
API action name. Each endpoint has its own fixed value, as documented. For example, the Upload File endpoint uses `CreateUploadFile`.
X-TC-Timestamp必填string
Current UNIX timestamp in seconds, e.g. `1605024000`. Used for request time validation — must not differ from server time by more than 5 minutes.
X-TC-Language选填string
Response language: `zh-CN` (Simplified Chinese, default) / `en-US` (English).
ℹ️

The access_token in Authorization is valid for 1 hour. It is recommended to refresh it about 60 seconds before expiry. See Authentication for details.