Archive/Unarchive domain

Description

Summary: Archives or unarchives a domain by its unique identifier. Details: This endpoint toggles the archive state of a specific domain. Archiving a domain effectively deactivates it without permanently deleting it, allowing you to restore it later by setting archive to false. This is useful for temporarily disabling domains that are not currently in use while preserving their configuration.

Authentication & Scopes

Authentication is handled via an API key provided in the Authorization header. No OAuth scopes are defined; access is granted or denied based on the validity of the key.

MethodDetails
API KeyPass your API key directly in the Authorization header value (not as a Bearer token).

Headers

HeaderRequiredDescription
AuthorizationYesThe API key that verifies your access to the API.
Content-TypeYesMust be application/json.
acceptNoExpected response format. Default: application/json.

Parameters

ParameterTypeLocationRequiredDescription
:idstringPathYesThe unique identifier of the domain to archive or unarchive.

Request Body

The request body must be a JSON object with the following properties:

PropertyTypeRequiredDescription
archivebooleanYesSet to true to archive the domain, or false to unarchive it.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Body Params
boolean
Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json