API Documentation

Everything you must know in one place

IMPORTANT: Our privacy service provider recently changed to WithheldforPrivacy. We want to avoid service interruption for our API users, so please note that in some cases, you may still see Whoisguard in the API parameter names.


Enables domain privacy protection for the WhoisguardID.

Example Request


Request Parameters

Global parameters are not shown here for clarity, but should be present in all requests

Name Type MaxLength Required? Description
WhoisguardID Number 10 Yes The unique domain privacy ID which you get
ForwardedToEmail String 70 Yes The email address to which domain privacy emails are to be forwarded

Example Response

<?xml version="1.0" encoding="UTF-8"?>
<ApiResponse xmlns="http://api.namecheap.com/xml.response" Status="OK">
  <Errors />
  <Warnings />
  <CommandResponse Type="namecheap.whoisguard.enable">
    <WhoisguardEnableResult DomainName="domain1.com" IsSuccess="true" />

Response Parameters

Name Description
DomainName The domain name for which you are trying to enable domain privacy
IsSuccess Indicates whether the domain privacy was enabled successfully.

Error Codes

Specifies the error codes that might be returned from this method

Number Description
2011331 Domain privacy does not exists (or) domain privacy is already enabled (or) domain privacy is not associated with any domain or) domain privacy is not associated with this user
2011369 Error domain privacy forwarded Email address is not valid


We welcome your comments, questions, corrections and additional information relating to this article. Your comments may take some time to appear. Please be aware that off-topic comments will be deleted.

If you need specific help with your account, feel free to contact our Support Team. Thank you.

Need help? We're always here for you.

× Close