Skip to content

Instantly share code, notes, and snippets.

@lcgitsup
lcgitsup / wireguard-unifi-bulk-clients.md
Created March 19, 2026 08:39
How to bulk create WireGuard clients on Unifi UDM Pro via API (Python + reverse engineering)

How to bulk create WireGuard clients on UDM Pro via API (Python + reverse engineering)

I needed to deploy WireGuard VPN to 48 Windows machines on an Active Directory domain. Creating clients one by one in the UniFi UI was not an option, so I reverse engineered the API using Firefox DevTools. Sharing everything here since there is almost no documentation on this.


The problem