Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
wireguard_interface_id
string<uuid>
required

The id of the wireguard interface associated with the peer.

Example:

"6a09cdc3-8948-47f0-aa62-74ac943d6c58"

public_key
string

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

data
WireguardPeer · object