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

Common request parameters

Parameter Description Required
Authorization The string to be verified. The syntax of the value is MNS AccessKeyId:Signature. For more information about the Authorization header, see related topics. Yes
Content-Length The size of the message body in the request. Yes
Content-Type The MIME type of the message body. Valid values: text and xml. Yes
Content-MD5 The MD5 hash of the message body. For more information about the format, see The Content-MD5 Header Field. No
Date 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. Yes
Host The MNS server to receive the request. The syntax of the value is $AccountId.mns.cn-hangzhou.aliyuncs.com. You can retrieve the account ID from the official website of Alibaba Cloud and the MNS endpoint from the API document. This parameter is required if you use HTTP/1.1 and is optional if you use HTTP/1.0.
x-mns-version The API version that is used. The latest API version is 2015-06-06. Yes
x-mns-date 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. No

Common response parameters

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