---
title: "Archive or restore a Dynamic DNS key"
method: PUT
path: "/dns/ddns/keys/archived"
tags: ["dns", "ddns"]
---

# Archive or restore a Dynamic DNS key

`PUT /dns/ddns/keys/archived`

## Request

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

Hide a dead Dynamic DNS key from the default list, or restore it. This is a display-only change: it never affects whether a key works. Only a key that has already been revoked (or invalidated by a domain transfer) can be archived — revoke it first.

## Headers

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

## Request body

- object
  - `credentialId` string, required
  - `archived` boolean, required

## Response `200`

OK

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