> ## 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.

# Create a profile

> Create a profile with the filtering and logging settings you choose.

Send a JSON object with the settings you want to set. Omitted fields use the profile defaults. An empty object (`{}`) creates an unnamed profile. Your account becomes the owner.

```bash cURL theme={null}
curl -X POST "https://api.nextdns.io/profiles" \
  -H "X-Api-Key: $NEXTDNS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Home",
    "settings": { "logs": { "enabled": false } },
    "denylist": [{ "id": "example.com" }]
  }'
```

```json 200 theme={null}
{
  "data": {
    "id": "c2ke6y",
    "fingerprint": "c2ke6y",
    "role": "owner",
    "name": "Home"
  }
}
```

## Request body

**name** `string`

A name of 1 to 255 characters, unique among the owner's profiles. Use `null` for an unnamed profile.

**setup** `object`

Set `linkedIp.ddns` to a dynamic DNS hostname. Its first IPv4 address must match the IPv4 address making the request. Use `null` to clear the hostname. See [DNS setup and Linked IP](https://docs.nextdns.io/api-reference/profiles/setup.md).

**security** `object`

DNS threat protections, such as `googleSafeBrowsing`. See [Security](https://docs.nextdns.io/api-reference/profiles/settings.md#security).

**privacy** `object`

Blocklist selections, native tracking protection, and tracker settings. See [Privacy and parental controls](https://docs.nextdns.io/api-reference/profiles/settings.md#privacy-and-parental-controls).

**parentalControl** `object`

Service and category rules, SafeSearch, and the [recreation time schedule](https://docs.nextdns.io/api-reference/profiles/settings.md#set-recreation-time).

**denylist** `object[]`

Domains to block. Each entry takes a domain in `id` and an optional `active` flag that defaults to `true`.

**allowlist** `object[]`

Domains to allow. Entries have the same fields as the Denylist. See [Allowlist and Denylist](https://docs.nextdns.io/api-reference/profiles/domain-lists.md).

**settings** `object`

[Logging](https://docs.nextdns.io/api-reference/profiles/settings.md#logging), the block page, and [performance and other settings](https://docs.nextdns.io/api-reference/profiles/settings.md#performance-and-other-settings).

## Response

Each successful request creates a new profile. Use `data.id` in subsequent requests. The creation response repeats that ID in `fingerprint`. To get the stored fingerprint, [read the new profile](https://docs.nextdns.io/api-reference/profiles/get.md).

If you already own a profile with the requested name, the API returns HTTP `200` with `{"errors":[{"code":"duplicate"}]}`. See [Responses and errors](https://docs.nextdns.io/api-reference/responses.md).


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