Whois Privacy (Toggle)

Toggling WHOIS Privacy: This feature masks your personal contact details (Name, Address, Email, Phone) from the public WHOIS global database. The boolean parameter utilizes PHP's FILTER_VALIDATE_BOOLEAN filter, meaning truthy representations like true, "true", 1, and "yes" will all trigger enablement, while false, "false", 0 or omitted values disable the proxy.

Endpoint:POST /{id}/privacy

Parameters:

  • id (required, URL parameter): The local ID of the domain.
  • enable (required, boolean/integer/string): Pass a boolean-equivalent value (true, 1) to activate ID protection, or (false, 0) to deactivate it on the registrar.

Example Request:

curl -X POST "https://umva.net/api/domain/123/privacy"
-H "X-API-Key: your_api_key_here"
-H "Content-Type: application/json"
-d '{"enable": true}'

Success Response Example (HTTP 200):

{
"success": true,
"message": "WHOIS privacy enabled successfully.",
"data": {
"domain": "example.com",
"whois_privacy": true
}
}

Error Response Example (HTTP 500):

{
"success": false,
"message": "WHOIS privacy is not supported for this TLD."
}