Skip to content

API List & Switches

`Interfaces` → `API list` manages the built-in third-party APIs. Only enabled features can be called, and switches are subject to license points.

ColumnDescription
FeatureAPI name
pathCompatible path (legacy /api/api/*)
methodSupported HTTP methods
DataRequest fields and types
ExampleRequest body example
ActionsEnable/disable switch
FeaturePathMethodsPurpose
send_msg/api/api/send_msgGET / POSTSound and light broadcast: LED style, color, text, tone, repeats
play_next/api/api/play_nextGET / POSTSkip the current broadcast
clear_queue/api/api/clear_queueGET / POSTClear the pending broadcast queue
get_play_queue_size/api/api/get_play_queue_sizeGET / POSTQuery the pending queue length
user_msg/api/api/user_msg/{api_id}GET / POSTTrigger a custom API entry

Equivalent /api/v2 endpoints:

Featurev2 path
send_msgPOST /api/v2/alerts
play_nextPOST /api/v2/alerts/next
clear_queuePOST /api/v2/alerts/clear-queue
get_play_queue_sizeGET /api/v2/alerts/queue-size
user_msgPOST /api/v2/webhook-alerts/{api_id}/trigger

The page also lists these legacy features. They have no full contract example but can be enabled or disabled individually:

FeaturePathPurpose
clear_specified_alarms/api/api/clear_specified_alarmsClear periodic, infinite, pending, email, or Trap broadcasts by type
old_msg/api/api/old_msgLegacy alarm-light protocol (led/mode/last/tone/text)
set_api_repeat_alarm/api/api/set_api_repeat_alarmCreate a periodic API broadcast
not_stop_repeat_alarm/api/api/not_stop_repeat_alarmCreate an infinite broadcast
del_repeat_alarm/api/api/del_repeat_alarmDelete a specific loop broadcast
  1. Locate the target API.
  2. Toggle the switch. “Enabled” allows calls; “Disabled” rejects them.
  3. Changes are saved immediately; no restart is required.

Enabling checks the license:

  • Expired licenses, unauthorized features, or insufficient points cause the switch to fail with a reason.
  • Disabling an API releases its license points.
  • The switch applies to both the v2 and legacy endpoints.
  1. Enable the required feature under API list.
  2. The current firmware does not verify signatures and requires no API key; legacy token, time, and sign fields are accepted.
  3. For custom payloads, create the entry under Interfaces → Custom API first, then enable user_msg.
Terminal window
# Broadcast through the legacy-compatible path
curl -X POST http://192.168.0.66/api/api/send_msg \
-H "Content-Type: application/json" \
-d '{"text":"Fire alarm on floor 2","led_style":25,"color":[["255,0,0"]],"led_flag":[{"floor":1,"value":1}],"repeat_count":1}'
# Query the queue length (v2)
curl http://192.168.0.66/api/v2/alerts/queue-size

See Basic Functions and Single Alert for full parameters.

Why does an enabled API still return 403? Check license expiry, feature authorization, and point limits.

Why does an enabled user_msg still fail? Verify the custom API path, method, and data type, then inspect the API call log.

Does disabling an API stop the current broadcast? No. It only blocks new calls; queued items continue.