Mail
Spam Management

Remove block on emails from specific countries

This function unblocks email from specific countries.

get/unblock_incoming_email_from_country

Request

  • Base URL
    https://whm-server.tld:2087/json-api
  • Auth
    HTTP basic

Query parameters

country_codestring

The country to unblock. A valid ISO 3166-1 alpha-2 code two-letter country code.

Note:

  • To search all available country codes, read the ISO's Full list of Country Codes documentation.
  • To unblock multiple countries, duplicate or increment the parameter name. For example, to unblock three countries, you could:
    • Use the country_code parameter multiple times.
    • Use the country_code, country_code-1, and country_code-2 parameters.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "updated": 1
  },
  "metadata": {
    "command": "unblock_incoming_email_from_country",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}

Changes

No recorded changes to this operation across all 5 revisions of this API.