Virtual Router

Add WireGuard peer

Add a WireGuard peer. If you omit public_key, one is generated and the config is returned once.

post/v1/virtual-routers/{service_id}/wireguard

Request

  • Base URL: https://developers.servera.co.uk
  • URL: https://developers.servera.co.uk/v1/virtual-routers/{service_id}/wireguard
  • Auth: HTTP bearer

Path parameters

service_idinteger required

Service id of the VPS/VDS (from GET /vps) or Virtual Router (from GET /virtual-routers).

Request body

namestring
public_keystring nullable

Base64 WireGuard public key (44 chars, e.g. ends in '='). Omit to have a keypair generated and the config returned once. An invalid format is rejected with 400.

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.