# Add block on emails from specific domains This function blocks email from specific domains. Endpoint: GET /block_incoming_email_from_domain Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `domain` (string, required) The domain to block. * The function returns for the return if the server already blocks that domain. * An FQDN requires a label, a dot (), and a top-level domain (TLD). * Enter an asterisk () to represent a wildcard label or TLD. * To block multiple domains, duplicate or increment the parameter name. ## Response 200 fields (application/json): - `data` (object) - `data.updated` (integer) Whether the function blocked one or more domains. * 1 — Success. * 0 — Failure. Enum: 0, 1 - `metadata` (object) - `metadata.command` (string) The method name called. Example: "block_incoming_email_from_domain" - `metadata.reason` (string) The reason the API function failed when the field is . This field may display a success message when a function succeeds. Example: "OK" - `metadata.result` (integer) * — Success * — Failed. Check the field for more details. Enum: 0, 1 - `metadata.version` (integer) The version of the API function. Example: 1