Skip to content

Single Alert

The single alert API is the core capability of the terminal, used to trigger the device to perform a single custom audible and visual announcement.

Trigger the alarm light to perform a custom audible and visual announcement through a single alert.

Note: The audible and visual announcement triggered by this interface can only be executed once.

Request Address: http://<Device IP Address>/api/api/send_msg

Request Method: POST

Data Type: form-data

Request Parameters

Parameter NameVariable TypeDescriptionRequired
led_stylestringLED style parameter, see the table below for details.
colorjsonKey is the LED layer number, value is an array of LED colors, supporting RGB color codes and W3C standard color names
Example: {“1”:[“blue”]} or {“2”:[“#00ffff”]}
1 means the first layer, 2 means the second layer.
Only rotating bright supports multiple color arrays.
led_flagjsonLED style parameter, see the table below for details.
textstringThe text content to be announced, maximum 150 characters. The current version will not report an error if exceeded, but it will be truncated.
tts_speedintSpeech announcement speed, range 1~10. If not provided, the default is medium speed.
play_timeintAnnouncement duration.
When this value is present, if the announcement is not completed within the specified time, the content will be truncated.
repeat_countintNumber of times to repeat the announcement, default is 1.
tonestringRingtone number, this value can be obtained from the prompt tone in the notification group settings.
timestringCurrent Unix timestamp; used for signature verification in legacy firmware, not verified now, optional.No
signstringLegacy signature string; not verified now, optional.No
soundstring0: Specify female voice announcement (default is female voice); 1: Specify male voice announcement;

LED Style Parameters

Style Value Effect Parameter Index Parameter Description Recommended Value
15 Rotating Bright 0 Rotation interval time (seconds) [0.03,1]
1 Acceleration factor
20 Flashing Bright 0 Flash duration (seconds) [1, 1]
1 Light-off duration (seconds)
25 Steady Bright No parameters, fill in [0] as a placeholder.
30 Pulsing No parameters, fill in [0] as a placeholder.

Please refer to the steps in the image below. You can click the image to enlarge it.

In addition to manually creating requests, a Postman test configuration file is provided in the download section. The legacy signature script may remain; the current firmware does not verify signatures.

Official Website - Resources - Boling Voice Notification Terminal HTTP Interface Debugging Demo (Postman)