Greylisting
Spam Protection (Greylisting)
Add IP address to Greylisting trusted hosts
This function adds an IP address to the Greylisting Trusted Hosts list.
get/create_cpgreylist_trusted_host
Query parameters
ipstring required
Example:192.168.0.1
The record's IP address, or a range of IP addresses.
Note:
To add multiple IP addresses, increment the parameter name. For example, ip-1, ip-2, and ip-3.
commentstring
Example:NoComment
A comment.
Response
HTTP Request was successful.
Example response
{
"data": {
"comment": "NoComment",
"ips_added": [
{
"comment": "Fascinating",
"create_time": "2015-02-17T10:08:26.000Z",
"host_ip": "192.168.0.1",
"id": 42
}
],
"ips_failed": {
"comment": "Sorry, 192.168 is not a valid IP address."
}
},
"metadata": {
"command": "create_cpgreylist_trusted_host",
"reason": "OK",
"result": 1,
"version": 1
}
}