You need to enable JavaScript to run this app.
Direct Connect

Direct Connect

Copy page
Download PDF
Call methods
Common Parameters
Copy page
Download PDF
Common Parameters
Common request parameters are those parameters that are required to call any open API. That is, whenever you use an open API of BytePlus to send a request, the request must contain common request parameters. Otherwise, your request fails. The initial letter of every common request parameter is capitalized to distinguish them from Request parameters.​
Action&Version​
Action and Version must be included in the query string when you make an API request.​
​
Name​
Type ​
Required​
Format​
Description​
Action​
String​
Yes ​
[a-zA-Z]+​
Name of an API, indicating the operation to be performed.​
Version​
String​
Yes ​
YYYY-MM-DD​
The version of the API. The current version is 2020-04-01.​
X-Expires​
Integer​
No​
300​
The validity period of the signature. Unit: seconds. Default value: 900.​
​
Signature parameters ​
Signature parameters are an essential part of requests. Signature parameters can be put in the header or query.​
Signature parameters in `Header`​
​
Name​
Type ​
Required​
Description​
X-Date​
String​
Yes ​
GMT time that is accurate to the second, such as 20201103T104027Z.​
Authorization​
String​
Yes​
HMAC-SHA256 Credential={AccessKey}/{ShortDate}/{Region}/{Service}/request, SignedHeaders={SignedHeaders}, Signature={Signature}​
​
The Authorization part contains the following parameters.​
​
Name​
Type ​
Remark​
AccessKey​
String​
AccessKey of the request.​
ShortDate​
String​
The short time requested, accurate to the day. UTC time, e.g., 20180201.​
Region​
String​
The Region of the request, such as cn-beijing for China (Beijing). For more information on regions, refer to Regions.​
Service​
String​
The requested service. For Direct Connect, it is: directconnect.​
SignedHeaders​
String​
The headers that are used for the signature. Multiple parameter values are separated with semicolons ( ; ).​
Signature​
String​
Calculated signature. For more information on the signature calculation method, refer to Signature method.​
​
Scenarios of signature parameters in Query ​
X-Date and Authorization information can directly exist in the Query.​
​
Name​
Type ​
Required​
Description​
X-Date​
String​
Yes ​
UTC time is used, accurate to seconds. Example: 20201103T104027Z.​
X-Algorithm​
String​
Yes ​
Set the value to HMAC-SHA256. Multiple options will be available in the future.​
X-Credential​
String​
Yes ​
composed of {AccessKey}/{ShortDate}/{Region}/{Service}/request.​
X-SignedHeaders​
String​
Yes ​
The Header involved in the signature. Separate multiple Headers with semicolons ( ; ).​
X-Signature​
String​
Yes ​
Calculated signature. For more information on the signature calculation method, refer to Signature method.​
​
​
Last updated: 2025.12.02 15:09:32