# Add domains' SPF records

This function installs a Sender Policy Framework (SPF) record for a domain on the DNS server.

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

## Query parameters:

  - `domain` (string, required)
    The domain for which to install an SPF record on the DNS server.

Note:

To install multiple SPF records, duplicate the parameter name. For example, use the domain=example.com, domain=example2.com, and domain=example3.com parameters.

  - `record` (string, required)
    An SPF record.

Note:

You must provide this parameter for each domain parameter.
    Example: "\"v=spf1 ip4:10.0.0.1 %2Ba %2Bmx %2Bip4:10.0.0.2 %2Bip4:10.0.0.3 -all\""

## Response 200 fields (application/json):

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

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

  - `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 SPF record installation to the DNS server.

  - `result.data.domain` (string)
    The SPF record's associated domain on the DNS server.
    Example: "example.com"

  - `result.data.msg` (string)
    The SPF record's installation status to the DNS server.
    Example: "[ADD:TXT@example.com.:v=spf1 ip4:10.0.0.1 %2Ba %2Bmx %2Bip4:10.0.0.2 %2Bip4:10.0.0.3 -all]"

  - `result.data.status` (integer)
    Whether the system installed the SPF record to the DNS server.
- 1 - The system installed the SPF record on the DNS server.
- 0 - The system cannot install the SPF record on the DNS server.
    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.


