# Validate domains' DKIM private keys

This function confirms the validity of a DomainKeys Identified Mail (DKIM) key for one or more domains.

Notes:

* If an existing DKIM key does not 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.136.0.4
Security: BasicAuth

## Query parameters:

  - `domain` (string, required)
    The domain for which to confirm a valid DKIM key exists.

Note:

 To check the DKIM key validity for multiple domains, duplicate the parameter name. For example, use the domain=example.com, domain=example2.com, and domain=example3.com 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.
* 1 - The system verified the existence of the domain's DKIM key.
* 0 - The system did not 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)
    * 1 - Success.
* 0 - Failed. Check the errors 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.


