---
title: "Toggle domain auto-renewal"
method: PUT
path: "/domain-config/auto-renew"
tags: ["domain-config"]
---

# Toggle domain auto-renewal

`PUT /domain-config/auto-renew`

## Request

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

Enable or disable automatic renewal for a domain. When enabled, the domain will be renewed automatically before expiration using the available payment methods on the owner wallet.

## Headers

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

## Request body

- union
  - object: ToggleAutoRenewEip712Envelope
    - `payloadType` 'ToggleAutoRenew', required
    - `payload` object, required: ToggleAutoRenew
      - `normalizedDomainName` string, required
      - `enableAutoRenew` boolean, required
    - `timestamp` number, required
    - `nonce` string, required
  - object: ToggleAutoRenew
    - `normalizedDomainName` string, required
    - `enableAutoRenew` 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/3c7c3ade95c9?raw)
