API registerwgserver: Difference between revisions
Appearance
API docs (generated from func=help) |
API docs regenerated from func=help (operator catalogue) |
||
| Line 1: | Line 1: | ||
''7Kas VoIP REST API function. Available to: ''' | ''7Kas VoIP REST API function. Available to: '''Operator'''.'' | ||
== Description == | == Description == | ||
| Line 27: | Line 27: | ||
---- | ---- | ||
Back to [[API VoIP]] · '''[[API Console|▶ Try it live]]''' · Profiles: | Back to [[API VoIP]] · '''[[API Console|▶ Try it live]]''' · Profiles: [[API profile Operator]] | ||
[[Category:API Operator]][[Category:API function]] | |||
Latest revision as of 13:47, 5 November 2026
7Kas VoIP REST API function. Available to: Operator.
Description
Registers/updates a WireGuard server (public key, listen port, endpoint). Operators/SuperRoot only.
Call
GET …/7Kas?func=registerwgserver&ukey=YOUR_KEY&…
Requires the ukey parameter.
Parameters
| Parameter | Type | Required | Default | Meaning |
|---|---|---|---|---|
server_id |
integer | Yes | — | Server id. |
wg_pubkey |
string | Yes | — | Server WireGuard public key (max 44). |
wg_listen_port |
integer | Yes | — | UDP listen port. |
wg_endpoint |
string | Yes | — | Public endpoint host:port (max 64). |
Example
https://api.7kas.com:9080/7Kas?func=registerwgserver&ukey=OPKEY&server_id=1&wg_pubkey=...&wg_listen_port=51820&wg_endpoint=vpn.example.com:51820
Response
Object confirming registration.
Back to API VoIP · ▶ Try it live · Profiles: API profile Operator