Domain APIs

Learn how to use Domain API V6.

Overview

The Domain API allows you to manage domains for email sending, DNS configuration, and email routing. With this API, you can add, delete, verify, and list domains in your account. You can also configure envelope and inbound settings, validate DNS records, and allocate domains to subaccounts. This is essential for managing your sending domains, ensuring email deliverability, and monitoring DNS configurations.

Key Features:

  • Add and remove domains.
  • Fetch domain details and their DNS setup (including DKIM, SPF, etc.)
  • Validate DNS configurations (DKIM, envelope sender, inbound routing)
  • Allocate domains to subaccounts for independent use.

Endpoints

Refer to the given table to know the endpoints under Domain API.

Endpoint NameMethodEndpointDescription
Add DomainPOST/v6/domainsAdds a new domain to your account for email sending and configures optional envelope and inbound settings.
Get DomainGET/v6/domains/{domain_name}Fetches the current status, tracking configuration, and DNS setup of a specific domain.
List DomainsGET/v6/domainsRetrieves a list of all domains under your account, with filtering and pagination options.
Verify DomainGET/v6/domains/validate/{domain_name}Triggers a DNS validation check to verify DKIM, envelope sender, and inbound routing configurations for a domain.
Delete DomainDELETE/v6/domains/{domain_name}Removes a domain from your account, ensuring it is no longer associated with email sending.
Allocate Domain to SubaccountPOST/v6/domains/allocateAssigns a domain to a subaccount so it can be used independently under that context.