Send Push Notifications to App

Last Updated on : 2023-11-07 09:53:34download

Send verification codes, notifications, or marketing messages to users' apps.

API address

POST: /v1.0/iot-03/messages/app-notifications/actions/push

Request parameter

Parameter nameTypeINRequiredDescription

Return parameter

Parameter nameTypeDescription
resultMsgPushRes

Description of result

Parameter nameTypeDescription
send_statusBooleanThe status of sending a specified message.

Request example

POST: /v1.0/iot-03/messages/app-notifications/actions/push
{
  "uid": "ay1528287200853*****",
  "biz_type": 10,
  "template_id": "PUSH_1616396456",
  "template_param": "{\"code\":\"1234\"}"
}

Return example

{
    "result": {
        "send_status": true
    },
    "t": 1586153261345,
    "success": true
}

Error code

For more information, see error code.