- Developer-created domains always use the Leadpush provider.
- Do not send
provider; provider input is rejected. dkim_selectorscan be used to request custom DKIM selectors. Each selector must be 10 characters or fewer.tracking_moderequirestracking_subdomainand currently acceptsdirectorcloudflare.- The endpoint requires the
domains.enabledentitlement and enforces the accountdomains.maxlimit when configured.
Create Domain
Create a Leadpush-managed sending domain for your workspace. The response includes the DNS records to add at your DNS provider, with is_valid values included for each record.
Creation Behavior
What happens when a domain is created
POST
/v1/domainsCreate a Leadpush sending domain
Request body
namestring Required Domain name to add, such as `example.test`
dkim_selectorsarrayOptional list of DKIM selectors. Each selector must be 10 characters or fewer.
tracking_subdomainstringOptional single DNS label to use for click tracking, such as `click`
tracking_modestringOptional tracking mode. Accepted values are `direct` and `cloudflare`.
Errors
Common create failures
- The endpoint returns
403witherror: "upgrade_needed"when the workspace owner does not havedomains.enabled. - The endpoint returns
403witherror: "limit_exceeded"when creating the domain would exceeddomains.max. - The endpoint returns
422when the domain input is invalid orprovideris included.