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
ICCID
Unique ICCID of target device
Topic
MQTT 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".
QoS
MQTT QoS can be 0 or 1.
Message
Downlink message. Range is 1-4096 bytes.
monoZ:Jet max message length is 1024 bytes.
monoZ:Jet max message length is 1024 bytes.
Format
Desgnate 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
Error boolean
Indicates if there was an error.
StatusCode integer
HTTP status code of the response.
Message string
Message indicating the result of the operation.
401
400
404
500cURL
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",
"QoS": 0,
"Format": 1
}'
Response
{
"Error": false,
"StatusCode": 200,
"Message": "MessagePublished"
}