Ubios-udapi-server

POST /proxy/network/api/v2.1/sites/default/clients/aa:bb:cc:dd:ee:ff/block

The ubios-udapi-server changes this by providing a structured, modern, stateless API gateway native to UniFi OS. It allows external clients (Python scripts, Node-RED, Home Assistant, or custom dashboards) to query and modify network settings via HTTP/HTTPS using standard methods like GET, POST, PUT, and DELETE. ubios-udapi-server

import requests import json url = "https://192.168.1.1/proxy/network/api/v2.1/sites/default/guest/vouchers" headers = "X-API-Key": "your-key-here", "Content-Type": "application/json" payload = "minutes": 120, # 2 hours "bandwidth_up": 1024, # Limit to 1 Mbps "bandwidth_down": 2048, "qty": 1 POST /proxy/network/api/v2