curl "https://api.nextdns.io/profiles" \
-H "X-Api-Key: $NEXTDNS_API_KEY"
{
"data": [
{
"id": "c2ke6y",
"fingerprint": "fp0123456789abcdef",
"role": "owner",
"name": "Home"
}
]
}
Profiles
List profiles
Find the profiles you own or have access to.
GET
/
profiles
curl "https://api.nextdns.io/profiles" \
-H "X-Api-Key: $NEXTDNS_API_KEY"
{
"data": [
{
"id": "c2ke6y",
"fingerprint": "fp0123456789abcdef",
"role": "owner",
"name": "Home"
}
]
}
Returns every profile available to the account associated with your API key. Use the
id from this list anywhere an endpoint asks for a profile ID.
curl "https://api.nextdns.io/profiles" \
-H "X-Api-Key: $NEXTDNS_API_KEY"
{
"data": [
{
"id": "c2ke6y",
"fingerprint": "fp0123456789abcdef",
"role": "owner",
"name": "Home"
}
]
}
data is an array and can be empty. The list is returned in one response. A shared profile appears after you accept the invitation.
| Field | Description |
|---|---|
id | Profile ID used in API paths. Treat it as an opaque string. |
name | Profile name, or null for an unnamed profile. |
role | Your access level (owner, editor, or viewer). |
fingerprint | An additional profile identifier. Use id for profile requests. |