# Validate domains' DKIM private 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 /EmailAuth/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 domains, duplicate the parameter name. For example, use the , , and parameters. ## Response 200 fields (application/json): - `apiversion` (integer) The version of the API. Example: 3 - `func` (string) The name of the method called. Example: "ensure_dkim_keys_exist" - `module` (string) The name of the module called. Example: "EmailAuth" - `result` (object) - `result.data` (array) An array of objects that contains information about the domain's DKIM key validity. - `result.data.domain` (string) The domain for which the system confirmed that a valid DKIM key exists. Example: "example.com" - `result.data.msg` (string) The domain's DKIM key status message. Example: "created new key" - `result.data.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 - `result.errors` (array,null) List of errors if the API failed. - `result.messages` (array,null) List of messages generated by the API. - `result.metadata` (object) - `result.status` (integer) * - Success. * - Failed. Check the field for more details. Enum: 0, 1 - `result.warnings` (array,null) List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.