WHOIS privacy: enable, disable or purchase
lw_domain_privacyEnable, disable, or purchase WHOIS privacy for a registered domain, with a preview and confirmation step before changes are applied.
Instructions
Change WHOIS privacy on a registration (bleed Network/DNS/Domain/enablePrivacy, disablePrivacy or purchasePrivacy by uniq_id). action=purchase orders privacy for a domain that does not have it and COSTS MONEY (price not exposed by the API; check the portal). enable/disable toggle privacy the domain already has. Preview shows privacy, has_privacy and privacy_allowed. Write: needs LW_ALLOW_WRITES, then a confirmation step (preview first).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "lw_domain_privacy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | enable or disable existing privacy, or purchase it. | |
| domain | No | Registered domain name, e.g. example.com. Give this or uniq_id. | |
| context | No | Auth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them. | |
| uniq_id | No | Six-character Liquid Web uniq_id of the domain registration (from lw_domain_list or lw_domain_details). | |
| confirm_token | No | Leave empty on the first call to get a preview and a token. Repeat the call with identical parameters plus this token to execute. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| status | Yes | ||
| context | No | ||
| preview | No | ||
| summary | Yes | ||
| warnings | No | ||
| next_page | No | ||
| next_step | No | ||
| truncated | No | ||
| expires_at | No | ||
| confirm_token | No |