# Enable domains' DKIM records

This function enables DomainKeys Identified Mail (DKIM) records on the DNS server for one or more domains.

Note:

If a DKIM record does not exist on the server, this function will install a new DKIM record.

Endpoint: GET /EmailAuth/enable_dkim
Version: 11.136.0.4
Security: BasicAuth

## Query parameters:

  - `domain` (string, required)
    The domain for which to enable DKIM records on the DNS server.

Note:

To enable multiple domain DKIM records, duplicate or increment the parameter. For example, to perform this for three domains, you could:

* Use the domain parameter multiple times.
* Use the domain, domain-1, and domain-2 parameters.

## Response 200 fields (application/json):

  - `apiversion` (integer)
    The version of the API.
    Example: 3

  - `func` (string)
    The name of the method called.
    Example: "enable_dkim"

  - `module` (string)
    The name of the module called.
    Example: "EmailAuth"

  - `result` (object)

  - `result.data` (array)
    An array that contains information about the enabled state of a domain's DKIM records on the DNS server.

  - `result.data.domain` (string)
    The domain for which the system enabled the DKIM record.
    Example: "example.com"

  - `result.data.msg` (string)
    The domain's DKIM record status message.
    Example: "[no changes needed]"

  - `result.data.status` (integer)
    Whether the system enabled the domain's DKIM record on the DNS server.
* 1 - Enabled.
* 0 - The system did not enable the domain's DKIM record.
    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.


