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.
Columns
Section titled "Columns"| Column | Description |
|---|---|
| Feature | API name |
| path | Compatible path (legacy /api/api/*) |
| method | Supported HTTP methods |
| Data | Request fields and types |
| Example | Request body example |
| Actions | Enable/disable switch |
Built-in APIs
Section titled "Built-in APIs"| Feature | Path | Methods | Purpose |
|---|---|---|---|
send_msg | /api/api/send_msg | GET / POST | Sound and light broadcast: LED style, color, text, tone, repeats |
play_next | /api/api/play_next | GET / POST | Skip the current broadcast |
clear_queue | /api/api/clear_queue | GET / POST | Clear the pending broadcast queue |
get_play_queue_size | /api/api/get_play_queue_size | GET / POST | Query the pending queue length |
user_msg | /api/api/user_msg/{api_id} | GET / POST | Trigger a custom API entry |
Equivalent /api/v2 endpoints:
| Feature | v2 path |
|---|---|
send_msg | POST /api/v2/alerts |
play_next | POST /api/v2/alerts/next |
clear_queue | POST /api/v2/alerts/clear-queue |
get_play_queue_size | GET /api/v2/alerts/queue-size |
user_msg | POST /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:
| Feature | Path | Purpose |
|---|---|---|
clear_specified_alarms | /api/api/clear_specified_alarms | Clear periodic, infinite, pending, email, or Trap broadcasts by type |
old_msg | /api/api/old_msg | Legacy alarm-light protocol (led/mode/last/tone/text) |
set_api_repeat_alarm | /api/api/set_api_repeat_alarm | Create a periodic API broadcast |
not_stop_repeat_alarm | /api/api/not_stop_repeat_alarm | Create an infinite broadcast |
del_repeat_alarm | /api/api/del_repeat_alarm | Delete a specific loop broadcast |
Enable or Disable
Section titled "Enable or Disable"- Locate the target API.
- Toggle the switch. “Enabled” allows calls; “Disabled” rejects them.
- 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.
Before Calling
Section titled "Before Calling"- Enable the required feature under
API list. - The current firmware does not verify signatures and requires no API key; legacy
token,time, andsignfields are accepted. - For custom payloads, create the entry under
Interfaces→Custom APIfirst, then enableuser_msg.
Examples
Section titled "Examples"# Broadcast through the legacy-compatible pathcurl -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-sizeSee 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.