---
title: "Get Wireguard Subnets"
method: GET
path: "/api/wireguard/subnets"
tags: ["System"]
---

# Get Wireguard Subnets

`GET /api/wireguard/subnets`

## Request

- Base URL: `https://api.ha-man2.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ha-man2.com/api/wireguard/subnets`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/admin/token`

Per-subnet WireGuard address usage: capacity, used/free counts and the first free IPs.

## Response `200`

Successful Response

- WireGuardSubnetUsage[]
  - `subnet` string, required
  - `interface_tags` string[], required
  - `capacity` integer, required
  - `used` integer, required
  - `free` integer, required
  - `free_ips` string[], required

## Other responses

- `401`: Unauthorized Error

## Changes

- **2026-11-03** `a7dc3fda908f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ha-man2/apis/pasarguardapi/changes/api/wireguard/subnets/get.md)

---

[API](https://skmtc.dev/ha-man2/apis/pasarguardapi.md) - [All operations](https://skmtc.dev/ha-man2/apis/pasarguardapi/llms.txt) - [OpenAPI document](https://skmtc.dev/ha-man2/apis/pasarguardapi/revisions/a7dc3fda908f?raw)
