Send Push Notifications to App

Last Updated on : 2023-06-15 05:14:01

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 name Type IN Required Description

Description of body

Parameter name Type IN Required Description
biz_type Integer true The business type of Tuya ecosystem.
template_id String true The approved push notification template ID.
template_param String false The actual value corresponding to the variable of push notification template, in the JSON format.

Return parameter

Parameter name Type Description
result MsgPushRes

Description of result

Parameter name Type Description
send_status Boolean The 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.