---
title: "Toggle automatic ENS records"
method: PUT
path: "/dns/auto-ens"
tags: ["dns"]
---

# Toggle automatic ENS records

`PUT /dns/auto-ens`

## Request

- Base URL: `https://api.namefi.io/v-next`
- URL: `https://api.namefi.io/v-next/dns/auto-ens`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Enable or disable the managed ENS TXT record for a domain. The DNS zone is validated against the resulting managed-record state before the setting is updated.

## Headers

- `x-namefi-eip7702-account` string
- `x-namefi-eip1271-account` string
- `x-namefi-erc1271-account` string

## Request body

- union
  - object: ToggleAutoEnsEip712Envelope
    - `payloadType` 'ToggleAutoEns', required
    - `payload` object, required: ToggleAutoEns
      - `normalizedDomainName` string, required
      - `enableAutoEns` boolean, required
    - `timestamp` number, required
    - `nonce` string, required
  - object: ToggleAutoEns
    - `normalizedDomainName` string, required
    - `enableAutoEns` boolean, required

## Response `200`

OK

- object
  - `success` boolean, required

## Other responses

- `400`: 400
- `401`: 401
- `402`: 402
- `403`: 403
- `404`: 404
- `406`: 406
- `408`: 408
- `409`: 409
- `412`: 412
- `429`: 429
- `500`: 500

---

[API](https://skmtc.dev/namefi/apis/namefi-api.md) · [All operations](https://skmtc.dev/namefi/apis/namefi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/namefi/apis/namefi-api/revisions/760583208ea8?raw)
