---
title: "Archive/Unarchive domain"
method: PUT
path: "/domains/archive/{id}"
tags: ["Domains"]
---

# Archive/Unarchive domain

`PUT /domains/archive/{id}`

Archive or unarchive a domain. Send `archive: true` to archive, or `archive: false` to restore it.

**Authentication:** TextPeak API key in the `Authorization` header (see **Authentication** in the API Overview).

## Request body

- object
  - `archive` boolean, required — Set `true` to archive the domain, `false` to unarchive it.

## Response `200`

The updated domain.

- object
  - `id` integer — Unique domain identifier.
  - `name` string — The domain name.
  - `ip` string — IP address the domain should point to (read-only).
  - `status` 'NOT_CONFIGURED' | 'CONFIGURED' | 'VALIDATION_PENDING' | 'VALIDATION_DECLINED' | 'ARCHIVED' | 'LIMIT_REACHED' — Domain configuration status.

---

[API](https://skmtc.net/commpeak/apis/dialer-api-v2-0-1.md) · [All operations](https://skmtc.net/commpeak/apis/dialer-api-v2-0-1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/commpeak/dialer-api-v2-0-1/revisions/eacecf960bb6/schema)
