Read the setup
GET /profiles/{profile}/setup returns the same object as data.setup in Get a profile. The setup endpoint puts that object directly in data.
To read only the Linked IP settings, use
GET /profiles/{profile}/setup/linkedIp. Its data object contains servers, ip, ddns, and updateToken directly. Both reads return 200 OK.
To update the linked address from a script, open your profile in My NextDNS. Under Setup → Linked IP, owners and editors can copy their private link-ip.nextdns.io URL from the advanced options. Send a GET to that URL from the network you want to link. The token in the URL authenticates the request, and the response body contains the caller’s IP address.
Set a dynamic DNS hostname
Owners and editors can setddns using either endpoint below. It is the only writable setup field. Send the request over IPv4 from the network you want to link. The first IPv4 address returned for the hostname must match the request’s public IPv4 address.
Replace
home.example.net with your hostname. Setting the hostname also links its current IPv4 address. Set ddns to null to clear the hostname and keep the currently linked address.
An IPv6 request to set a hostname returns 400 with ipv4Only. If the first IPv4 address differs from the caller’s, the API returns 200 with the error code different. Check for an errors array before treating a 200 as success.
Viewers can read setup, including their own update token. Only an owner’s or editor’s token can update the linked address for this profile. A viewer attempting a PATCH receives 403 with insufficientRole. An authenticated account without access to the profile receives 404.