v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
cPGreyList
Spam Filtering (Greylisting)

Enable Greylisting for specified domains

This function enables Greylisting on a cPanel account's selected domains.

get/cPGreyList/enable_domains

Query parameters

domainsstring required

The domain on which to enable Greylisting.

Note:

To enable Greylisting on multiple domains, use the domains parameter multiple times.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "enable_domains",
  "module": "cPGreyList",
  "result": {
    "data": [
      {
        "dependencies": [
          "example.com",
          "example1.com",
          "example2.com"
        ],
        "domain": "example.com",
        "searchhint": "example, example1, example2",
        "type": "main"
      }
    ],
    "metadata": {
      "transformed": 1
    },
    "status": 1
  }
}