go-unifi

List WAN Interfaces

Returns available WAN interface definitions for a given site, including identifiers and names. Useful for network and NAT configuration.

GET
/v1/sites/{siteId}/wans

Returns available WAN interface definitions for a given site, including identifiers and names. Useful for network and NAT configuration.

X-Api-Key<token>

UniFi API key. Create one under Control Plane → Admins & Users → your admin → Create API Key (requires controller 9.0.114+).

In: header

Path Parameters

siteId*string

Query Parameters

offset?integer
limit?integer

Response Body

application/json

curl -X GET "https://example.com/v1/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/wans"
{  "offset": 0,  "limit": 25,  "count": 10,  "totalCount": 1000,  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "Internet 1"    }  ]}