Create a WireGuard Peer
Create a new WireGuard Peer. Current limitation of 5 peers per interface can be created.
POST
JavaScript
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The id of the wireguard interface associated with the peer.
Example:
"6a09cdc3-8948-47f0-aa62-74ac943d6c58"
The WireGuard PublicKey.
If you do not provide a Public Key, a new Public and Private key pair will be generated for you.
Example:
"qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU="
Response
Successful response
JavaScript