> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nextdns.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a profile

> Read a profile's configuration, including its settings, lists, and DNS rewrites.

**profile** `string` *required*

ID of a profile you own or can access. [List profiles](https://docs.nextdns.io/api-reference/profiles/list.md) returns your role for each profile.

**locale** `string`

Language tag for the descriptions in `privacy.blocklists`, such as `fr`. Defaults to English.

```bash cURL theme={null}
curl "https://api.nextdns.io/profiles/$PROFILE_ID" \
  -H "X-Api-Key: $NEXTDNS_API_KEY"
```

```json "200 (selected fields)" theme={null}
{
  "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](https://docs.nextdns.io/api-reference/profiles/setup.md). 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. |

To fetch just one section, use its own endpoint. This is a response from `GET /profiles/{profile}/settings/performance`.

```json theme={null}
{
  "data": {
    "ecs": true,
    "cacheBoost": false,
    "cnameFlattening": true
  }
}
```

When [updating a profile](https://docs.nextdns.io/api-reference/profiles/update.md), send only the writable fields you want to change. Sending the full read response fails validation because it includes generated fields such as `id` and `fingerprint`. Use the [DNS rewrites endpoints](https://docs.nextdns.io/api-reference/profiles/rewrites.md) to change `rewrites`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.