# Validate domain's DKIM keys This function confirms the validity of a DomainKeys Identified Mail (DKIM) key for one or more domains. * If an existing DKIM key does meet the server's security requirements, the system replaces the existing DKIM key. * If no DKIM key exists, the system creates a new key for the domain. Endpoint: GET /ensure_dkim_keys_exist Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `domain` (string, required) The domain for which to confirm a valid DKIM key exists. To check the DKIM key validity for multiple domain, duplicate the parameter name. For example, use the , , and parameters. ## Response 200 fields (application/json): - `data` (object) - `data.payload` (array) An array of objects containing information about the domain's DKIM key validity. - `data.payload.domain` (string) The domain for which the system confirmed that a valid DKIM key exists. Example: "example.com" - `data.payload.msg` (string) The domain's DKIM key status message. Example: "created new key" - `data.payload.status` (integer) Whether the system verified that the domain's DKIM key exists. * — The system verified the existence of the domain's DKIM key. * — The system did verify the existence of the domain's DKIM key. Enum: 0, 1 - `metadata` (object) - `metadata.command` (string) The method name called. Example: "ensure_dkim_keys_exist" - `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