# Apply a DMARC record to a domain This function applies a DMARC record to the specified domain(s). You modify DMARC records on temporary domains. Endpoint: GET /apply_dmarc Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `policy` (string, required) The DMARC record to apply to the requested domains. When using multiple policies, each policy must have a matching domain. When using a single policy, it will be applied to all specified domains. Visit the following link for more information about the DMARC record specification: https://dmarc.org/resources/specification/ - `domain` (string) The domain for which to apply the DMARC record. To apply multiple domain DMARC records, duplicate the parameter name. For example, use the , , and parameters. If you do not include this argument, the system applies the DMARC record to domains on the system. ## Response 200 fields (application/json): - `data` (object) - `data.payload` (array) An array of objects that contains information about the DMARC records applied to domains. - `data.payload.domain` (string) The domain for which the DMARC record was applied. Example: "example.com" - `data.payload.msg` (string) The domain's DMARC record status message. Example: "[ADD:TXT@_dmarc.example.com:v=DMARC1; p=reject;]" - `data.payload.status` (integer) Whether the system applied a DMARC record to the domain. * - The system applied a DMARC record. * - The system did apply a DMARC record. Enum: 0, 1 - `metadata` (object) - `metadata.command` (string) The method name called. Example: "apply_dmarc" - `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