The restore_domain method restores a deleted domain.


   <credentials object> 
   "domain": <domain name>, 
   "id": <domain id>, 
   "new_name": <new domain name>

Request fields for restore_domain

The following fields can be used in the restore_domain method:

Field nameObligationDefinition/Value
domainRequiredThe current name of the domain you want to restore.
idRequiredThe domain id. This value can be retrieved by using the search_domains method with the deleted field set to true.
new_nameRequiredThe new name for the domain. This value must be submitted, but can be the same as domain (the original domain name).

Response fields for restore_domain

The following fields may be returned in response to the restore_domain method:

Field nameObligationDescription/Value
errorReturned if success = falseA text string that explains the error.
error_numberReturned if success = falseA number that represents the error.
successAlways returnedIndicates whether the request was successful or not. Allowed values are true and false.

Examples for restore_domain


  "credentials": {
    "user": "[email protected]",
    "password": "sw0rdf1sh"
  "domain": "",
  "id": "1325876554",
  "new_name": ""


  "success": true,