Skip to main content

Send Downlink 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>/sub

Args
ORG-ID
The unique ID assigned to your organisation
ICCID
Unique ICCID of target device
Topic
Topic can be empty or multiple but must start with a slash (/). For example: /Name1/Name2/..
QoS
Quality of Service, can be 0 or 1.
Message
Downlink message
Format
0 (JSON) or 1 (TEXT).

Response
200
Success MessagePublished
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
Unauthorized If the API Key is wrong or there is no permission to access the requested data.
400
Bad Request If the input value is not in the correct format.
404
Not Found If the specified ICCID was not found in the system.
500
Server Error As described in the Message field.
cURL
    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"
}