Authorizations
Enter your bearer token in the format: Bearer {token}
Path Parameters
The unique identifier (UUID) for the VPN instance.
"d290f1ee-6c54-4b01-90e6-d701748f0851"
Body
The type of peer to create.
client, site "client"
The protocol for the peer. client peers must use wireguard.
wireguard, openvpn "wireguard"
The unique identifier for the site. Required if type is site.
"c3d5e2a0-88c9-4f7f-9f7b-6a1e2b4c5d6e"
The unique identifier for the user. Required if type is client.
"a1b2c3d4-e5f6-7890-1234-567890abcdef"
A list of subnets (in CIDR notation) for the site. Required if type is site.
If true, route all traffic for the client through the VPN. Required if type is client.
false
Response
The peer was created successfully.
The unique identifier for the peer.
"550e8400-e29b-41d4-a716-446655440000"
The type of peer. client represents an individual user, while site represents a site-to-site connection.
client, site "client"
The unique identifier for the user, if the peer is of type client.
"a1b2c3d4-e5f6-7890-1234-567890abcdef"
The unique identifier for the site, if the peer is of type site.
"c3d5e2a0-88c9-4f7f-9f7b-6a1e2b4c5d6e"
A list of subnets (in CIDR notation) that this peer routes. Only applicable for site peers.
If true, all of the client's traffic will be routed through the VPN. Only applicable for client peers.
false
The VPN protocol used by this peer.
wireguard, openvpn "wireguard"
Indicates if the peer is currently connected.
false
The public IP address of the connected peer.
null
A short-lived token for client peers to retrieve their configuration files. Not for direct API use.
"eyJpdiI6..."
The time-to-live for the token in seconds.
3600
The timestamp when the peer was created.
"2025-10-29T12:45:00Z"