-
Notifications
You must be signed in to change notification settings - Fork 2
router api
GitHub Action edited this page Jul 20, 2026
·
11 revisions
The bundled API client follows the GL.iNet firmware API guide in dev-docs.docx.
All requests are posted to:
http://<router-address>/rpc
The router uses JSON-RPC challenge-response authentication.
- Call
challengewith usernameroot. - Read
alg,salt, andnonce. - Generate a Unix-style password hash using the algorithm requested by
alg. - Hash
username:cipherPassword:nonce. - Call
loginwith the generated hash. - Store the returned
sid.
Authenticated calls use JSON-RPC method call and pass:
sid, module-name, function-name, optional parameters
-
system: router info, status, reboot. -
edgerouter: per-interface WAN status (get_kmwan_status) used to build per-interface WAN status sensors. -
clients: client list (get_online). -
wifi: interface config and enable/disable. -
kmwan: GL.iNet KMWAN config, interface status, and sensitivity settings. -
mwan3: GL.iNet MWAN3 config, interface status, and per-interface detection settings. -
upgrade: Firmware update check, online status, and online firmware upgrade calls. The integration uses the firmware release note fromcheck_firmware_onlineto populate Home Assistant's native update entity when available. -
wg-client/vpn-client: Optional WireGuard client support across older and newer firmware. -
ovpn-client/vpn-client: Hybrid OpenVPN client support. Discovers profiles viaovpn-clientand manages state via the unifiedvpn-clienttunnel API. -
wg-server: Optional WireGuard server status and control. -
ovpn-server: Optional OpenVPN server status and control. -
tailscale: Tailscale config and state. -
modem: optional cellular status. -
repeater: optional repeater mode status, configuration, WiFi scan, connect/disconnect, and saved AP management. -
sms: optional text message list, send, and delete. -
zerotier: ZeroTier config and state. -
adguardhome: AdGuard Home config and state. -
firewall: Firewall rules, port forwarding, and DMZ management. -
mcu: Optional battery warning config and OLED screen display config. Battery live status is reported bysystem/get_statusundermcu.
- KMWAN — KMWAN multi-WAN services.
- MWAN3 — MWAN3 multi-WAN services.
- Modem API Coverage — Cellular modem API.