v1

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

Enable Greylisting for all domains

This function enables Greylisting on all of the cPanel account's domains.

get/cPGreyList/enable_all_domains

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_all_domains",
  "module": "cPGreyList",
  "result": {
    "data": [
      {
        "dependencies": [
          "this.com",
          "that.com",
          "theother.com"
        ],
        "domain": "example.com",
        "searchhint": "this, that, and the other.",
        "type": "main"
      }
    ],
    "metadata": {
      "transformed": 1
    },
    "status": 1
  }
}