Skip to main content

Retrieve Wireguard config template for Peer

GET 
/wireguard_peers/:id/config

Retrieve Wireguard config template for Peer

Request

Path Parameters

    id uuidrequired

    Identifies the resource.

Responses

200: Successful response

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/wireguard_peers/:id/config' \
-H 'Accept: text/plain; charset=utf-8' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


[Interface]
PrivateKey = <! INSERT PEER PRIVATE KEY HERE !>
Address = 198.51.100.1/32

[Peer]
PublicKey = qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=
AllowedIPs = 198.51.100.0/29
Endpoint = 203.0.113.0:51871
PersistentKeepalive = 25