Send Downlink Message
POST https://link.monoz.io/api/v1/{Org-Id}/Publish/Message
This API can be used to send a downlink message to the connected device. The default topic for downlink message shall be published to /< ORGID>/< ICCID>/subArgs
ICCIDUnique ICCID of target device
TopicMQTT Topic can be empty or multiple but must start with a slash (/). For example: "/Name1/Name2/..".
Max length is 512 bytes with including default topc "/< ORGID>/<ICCID>/sub".
Max length is 512 bytes with including default topc "/< ORGID>/<ICCID>/sub".
QoSMQTT QoS can be 0 or 1.
MessageDownlink message. Range is 1-4096 bytes.
monoZ:Jet max message length is 1024 bytes.
monoZ:Jet max message length is 1024 bytes.
RetainLastMessage When set to true, the message is stored by monoZ:Link broker and device shall receive it upon successful subscribe.
True: Send as Retain message.
False: Send as Non-Retain message.
True: Send as Retain message.
False: Send as Non-Retain message.
FormatDesignate downlink message format.
0:JSON
If message is JSON format, any CRLF or CR included in messsage shall be removed by monoZ:Link before pushing to the device.
1:TEXT
Sends message without any formatting.
0:JSON
If message is JSON format, any CRLF or CR included in messsage shall be removed by monoZ:Link before pushing to the device.
1:TEXT
Sends message without any formatting.
Response
200Success MessagePublished
200
Response Body
StatusCode integer
HTTP status code of the response.
Message string
Message indicating the result of the operation.
401400404500cURL
curl --location 'https://link.monoz.io/api/v1/mti/Publish/Message' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: 3fa36b0e-c88b-45f4-95b9-d77c0e27c07a' \
--data '{
"ICCID": "12345678",
"Topic": "/ABC",
"Message": "XYZ",
"RetainLastMessage": true,
"QoS": 0,
"Format": 1
}'
Response
{
"StatusCode": 200,
"Message": "MessagePublished"
}