v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Email
Spam Management

Return email account Apache SpamAssassin settings

This function retrieves the Apache SpamAssassin™ settings for the account.

Important:

When you disable the SpamFilter role, the system disables this function.

get/Email/get_spam_settings

Query parameters

accountstring email
Example:username@example.com

Retrieve a specific user account's SpamAssassin settings.

Note:

If you do not specify this parameter, the function returns the settings for the default email account.

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": "get_spam_settings",
  "module": "Email",
  "result": {
    "data": {
      "cpuser_spam_auto_delete": 1,
      "cpuser_spam_auto_delete_score": 8,
      "rewrites_subjects": 1,
      "spam_as_acl": 1,
      "spam_auto_delete_score": 8,
      "spam_enabled": 1,
      "spam_status_changeable": 1
    },
    "status": 1
  }
}