Skip to content

Quick Start

Enable the required API under `API list`, then send requests using the field reference. The current firmware does not verify request signatures, so no API key is required.

  1. Open Interfaces → API list and enable send_msg (sound and light broadcast).
  2. For custom payloads, create an entry under Interfaces → Custom API, then enable user_msg.
  3. Follow Basic Functions or Single Alert for fields.

See API List & Switches for the full switch behavior.

API list shows each built-in API’s feature, path, method, fields, and example, with an enable switch. Only enabled APIs can be called.

VersionURLNotes
Legacy compatiblehttp://<device-ip>/api/api/send_msgReturns {code,msg,data}, always HTTP 200
v2http://<device-ip>/api/v2/alertsSemantic HTTP status, returns {backend:...}

Both operate the same broadcast capability. New integrations should use v2. See API List & Switches for the endpoint mapping.

Legacy Signature Algorithm (Not Verified)

Section titled "Legacy Signature Algorithm (Not Verified)"

The algorithm below applies to older firmware. The current firmware does not verify signatures; this section is kept for migration and troubleshooting.

  1. Add token (API key) and time (current Unix seconds) to the parameter array, then sort by key ascending.
  2. Concatenate key and value in order to obtain sign_str.
  3. MD5-hash sign_str to obtain sign.
  4. Add sign and time to the request.

Original parameters:

NameValue
led_style15
color[“#123456”]
led_flag[0.1,1]
textVoice and light terminal
time1668843530

Add token:

NameValue
led_style15
color[“#123456”]
led_flag[0.1,1]
textVoice and light terminal
time1668843530
token1qaz2wsx

Sorted and concatenated:

color["#123456"]led_flag[0.1,1]led_style15textVoice and light terminaltime1668843530token1qaz2wsx

MD5 result:

dc76013f54527b7074e4076e86fba803

Legacy response:

{
"code": 200,
"msg": "OK",
"data": {
"method": 50,
"id": "4972367dd614bf8adfe5fff138a3af76",
"data": 1,
"res_code": 0
}
}