I am trying to verify domains using the Google Site Verification API.
For some email addresses, the verification request succeeds fine. For other email addresses, it says "Could not resolve the email address". I cannot see any reason why it should reject one email address but not another.
My only guess is that the provided email address must be listed in the domain name system somewhere as a domain contact. However this is not documented anywhere that I can see, but of course that's entirely normal for Google's developer documentation which is thoroughly crap and often inconsistent and out of date.
Request to endpoint:
https://www.googleapis.com/siteVerification/v1/webResource?access_token=<token>&project=`<proj_id>&verificationMethod=DNS_TXT`
Parameters to request:
{"site": {"type": "INET_DOMAIN", "identifier": "<domain name>"}, "owners": ["<email address 1>", "<email address 2>"]}
Response from request:
{'error': {'errors': [{'domain': 'global', 'message': 'Could not resolve the email address: <email address 2>', 'reason': 'invalidParameter'}], 'message': 'Could not resolve the email address: <email address 2>', 'code': 400}}
Can anyone suggest why some email addresses would be rejected and other accepted?