DMARC Report icon

DMARC Report

API documentation for DMARC Report v2. Provides endpoints for managing accounts, domains, aggregate reports, forensic (failure) reports, MTA-STS reports, postmaster account records, and account members.

AccountDomains → Add domains in account

AI-generated

Summary

Add one or more domains to a specified account by sending a POST request to the /accounts/{account_id}/domain_accounts.json endpoint.

Inputs

  • account_id (required) — The unique identifier of the account to which domains will be added.
  • additionalFields.domain_account — JSON object describing the domain account information to add.
  • options.customBody — Optional arbitrary JSON to include in the request body; merges with provided fields and takes priority.
  • options.headerFilters — Custom HTTP headers to include in the request.
  • options.queryFilters — Query-string filters to include in the API request.
  • options.batching — Settings to group input items in batches and intervals to control request frequency.
  • options.debug — Flag to include detailed request information (URL, headers, body) in the output for debugging.
  • options.pagination — Configuration for handling pagination when listing operations (not typically applicable for add operation).
  • options.timeout — Timeout in milliseconds to wait for the server response before aborting the request.

Output shape

a JSON object representing the API response from adding domains, including success confirmation or error details; optionally includes debug information if enabled.

The node sends one POST request per input item (or per batch if batching is configured). The response format depends on the API; additional debug info is included if debug is enabled.

Links

Discussion