API getwgpeers
Appearance
7Kas VoIP REST API function. Available to: SuperRoot, Operator.
Description
Lists WireGuard peers of a server (SSIP-transparent union of SSIP + VPN pairs). Operators see their own scope; SuperRoot all. Not available to clients.
Call
GET …/7Kas?func=getwgpeers&ukey=YOUR_KEY&…
Requires the ukey parameter.
Parameters
| Parameter | Type | Required | Default | Meaning |
|---|---|---|---|---|
server_id |
integer | Yes | — | WireGuard server id. |
Example
https://api.7kas.com:9080/7Kas?func=getwgpeers&ukey=OPKEY&server_id=1
Response
FillRecords2JSON: peer rows.
Back to API VoIP · ▶ Try it live · Profiles: API profile SuperRoot, API profile Operator