API
NextDNS API documentation is available at https://nextdns.io/api. You can find your API key at the bottom of your account page.
20 replies
-
- What are the allowed types for .../analytics/destinations?
- .../analytics/gafam returns 404 Not Found
-
Can you show me an example of how to change the performance settings? These attempts are not working:
curl -X PATCH -H "X-Api-Key: redacted" --data "cnameFlattenig=false" https://api.nextdns.io/profiles/<profile_id>/settings/performance curl -X PATCH -H "X-Api-Key: redacted" -H "content-type: application/json" --data '{"cnameFlattenig": false}' https://api.nextdns.io/profiles/<profile_id>/settings/performance
-
How does one set the current active profile using the API? The docs show how to create/read existing profiles, but it's unclear how a profile can be set as the active profile.
-
I do not under understanding what you mean by
…or add a domain to the Denylist by POST‘ing at: https://api.nextdns.io/profiles/:profile/denylist
what do we post?
-
@NextDNS Could you show me the list of supported protocols that can occur in /analytics/protocols?
I found those DNS-over-HTTPS, DNS-over-QUIC, DNS-over-TLS, TCP, UDP. Anything else?Similar request for statuses from /analytics/status, I found "allowed", "blocked", "default", "relayed".
-
Are you planning to use the API to build more functionality into the native mobile apps like logs, charts etc ?
In that case, it would be very helpful to add allowlist / blocklist CRUD operations to the API.
Alongside with logs, this can be very helpful in temporarily allowing URLS for websites that break (and then block them again).
Today the only way to do that is via the web app
-
Any way to get the logs for all profiles at the same time, or do you have to use the profile ID and query each profile individually?
-
Please implement a way to generate a new API key ASAP.
-
Changing the key and removing API access would be great
-
Is there a way to update a rewrite entry through the API?