curl "https://api.nextdns.io/profiles/$PROFILE_ID" \
-H "X-Api-Key: $NEXTDNS_API_KEY"
{
"data": {
"id": "c2ke6y",
"name": "Home",
"denylist": [{ "id": "example.com", "active": true }],
"allowlist": [],
"rewrites": []
}
}
Profiles
Get a profile
Read a profile’s configuration, including its settings, lists, and DNS rewrites.
GET
/
profiles
/
{profile}
curl "https://api.nextdns.io/profiles/$PROFILE_ID" \
-H "X-Api-Key: $NEXTDNS_API_KEY"
{
"data": {
"id": "c2ke6y",
"name": "Home",
"denylist": [{ "id": "example.com", "active": true }],
"allowlist": [],
"rewrites": []
}
}
ID of a profile you own or can access. List profiles returns your role for each profile.
curl "https://api.nextdns.io/profiles/$PROFILE_ID" \
-H "X-Api-Key: $NEXTDNS_API_KEY"
{
"data": {
"id": "c2ke6y",
"name": "Home",
"denylist": [{ "id": "example.com", "active": true }],
"allowlist": [],
"rewrites": []
}
}
Response fields
| Field | Contents |
|---|---|
id, name, fingerprint | The profile’s identifiers and name. |
setup | DNS addresses and linked IP configuration. Keep setup.linkedIp.updateToken private. It belongs to the account making the request. |
security, privacy, parentalControl | Filtering settings, enabled lists, and parental control rules. |
denylist, allowlist | Domain entries, including inactive entries. |
settings | Logging, block page, performance, and other profile settings. |
rewrites | Custom DNS answers for this profile. |
GET /profiles/{profile}/settings/performance.
{
"data": {
"ecs": true,
"cacheBoost": false,
"cnameFlattening": true
}
}
id and fingerprint. Use the DNS rewrites endpoints to change rewrites.