Skip to Content

Uplink Message Push

Push uplink messages to the customer’s specified address through HTTP batch push.

Protocol Description

CategoryDescription
URLUser-configured HTTP callback address (currently needs to be actively provided by the user)
MethodPOST
ProtocolHTTP + JSON
EncodingUTF-8

Request Description

The request is in JSON Array format, and a single request may contain multiple uplink message contents.

Request Example

{ MsgType: 0, Data: [ { ExtendCode: "12345", UserId: "you man c define the content by yrself", Phone: "185****9057", ReplyContent: "OK, it can be done", ReplyTime: 1573552778 }, { ExtendCode: "12346", UserId: "you man c define the content by yrself", Phone: "185****9057", ReplyContent: "Received, thank you", ReplyTime: 1573552778 } ] }

Parameter Description

Parameter nameTypeDescriptionExampleRequired
MsgTypeintPush message type, 0 represents uplink messages0Yes
DataArrayBatch listYes
  • Data
Parameter nameTypeDescriptionExampleRequired
ExtendCodestringExtension code, not included by default12345No
UserIdstringCustom business identification ID, string (length cannot exceed 32 characters)xxx-uhost-001No
PhonestringPhone number18512345678Yes
ReplyContentstringUplink (reply) messageOK, got itYes
ReplyTimeintReply time1563867000Yes

Response Description

Response Example

{ code: 0, message: "ok" }

Parameter Description

codemessageDescription
0okSuccessful reception
Non-0Error descriptionUnsuccessful reception

Retry Description

If the initial push fails (non-success response), a retry will be attempted every 1 second. If after 3 accumulated retries it is still unsuccessful, the pushing will stop.