This topic describes the common request parameters and common response parameters that are used in Message Service (MNS) API operations.

Common request parameters

Parameter Required Description
Authorization Yes The string used for verification. For more information, see Sign requests.
Content-Length Yes The size of the message body in the request.
Content-Type Yes The Multipurpose Internet Mail Extensions (MIME) type of the message body. Valid values: text and xml.
Content-MD5 No The MD5 hash value of the message body. For more information, see The Content-MD5 Header Field.
Date Yes The time when the request is generated. The time must be in UTC. If the interval between the time when the request is generated and the time when the request is received exceeds 15 minutes, MNS determines that the request is invalid.
Host This parameter is required if you use HTTP/1.1 and is optional if you use HTTP/1.0. The MNS server to receive the request. The value must be in the format of $AccountId.MNS endpoint. Example: $AccountId.mns.cn-hangzhou.aliyuncs.com. You can obtain your account ID from the Alibaba Cloud international site (alibabacloud.com) and obtain an MNS endpoint by reading the "Regions and endpoints" topic.
x-mns-version Yes The version of the API to be used. The latest API version is 2015-06-06.
x-mns-date No This parameter can be used to replace the Date parameter. If your browser does not support the Date parameter, you can use the x-mns-date parameter instead.

Common response parameters

Parameter Description
Content-Length The size of the message body that is returned.
Connection The status of the HTTP connection.
Date The time when the response is returned. The time must be in UTC.
Server The name of the MNS server that responds to the request.
x-mns-request-id The ID of the request.
x-mns-version The version of the API that is used. The latest API version is 2015-06-06.