Websites
Upgrade Sending Domain DNS
Move a verified domain onto the current DNS records without removing it
POST
Upgrade Sending Domain DNS
Start a one-time, optional upgrade of a sending domain to our new DNS
structure. It is recommended: it improves deliverability and security, and
Sequenzy can later change keys and sending infrastructure without you editing
DNS again. The domain is
not removed: it keeps sending on its current records while the upgrade is in
progress, and sender profiles and sequences stay as they are.
The new records now appear in
website.dnsUpgrade.status tells you whether a domain can start. The upgrade
is being offered to domains gradually; until it reaches yours, status is
unavailable. It is
available for a verified domain on the previous record set (a DKIM TXT at
sequenzy._domainkey and a send return path, for example), including older
domains that only sent through Amazon SES (both BYODKIM and legacy three-CNAME
Easy DKIM domains). Such a domain needs a working DMARC
record first: without one, this endpoint answers 400 with “Add a DMARC record
for this domain before upgrading its DNS records.” and the status is
unavailable. Domains in the middle of an earlier records migration are
unavailable too. Every unavailable domain gets a 400 from this endpoint.
How it works
- Call this endpoint. The response lists four CNAMEs in
website.dnsUpgrade.records. - Publish them next to your current records. Remove nothing yet: your current records keep the domain verified and sending until the switch.
- Sequenzy checks the new records with each verification. Call Verify Sending Domain to check right away.
- About an hour after the required records (
dkimandreturn_path) are visible on public DNS (Google and Cloudflare resolvers), the domain switches by itself. The wait lets cached “does not exist” answers expire; verifying checks right away but does not skip it. Sequenzy prepares the domain’s sending setup separately and switches only once it is confirmed, so sending is normally not interrupted and no emails are held. If that isn’t possible for a domain, emails sent through Amazon SES can be held for a few minutes while SES confirms the new setup, then they go out. The domain also gets a new 2048-bit DKIM key; the key change adds no records of its own. website.dnsUpgrade.statusbecomescompletedandoldRecordslists the records the domain no longer uses. Keep them untildeleteOldRecordsAfter, 8 days after the switch; deleting them after that is optional. Before the switch,replacedRecordslists the same records. Each verification marks a recordremovedonce it is gone from public DNS. For an older SES-only domain these include the old return path records (MX and TXT atsend.mail.example.comorbounce.mail.example.com) and the old DKIM record(s) (the DKIM TXT or the three Easy DKIM CNAMEs); your DMARC record stays.
Publish all four, plus the tracking CNAME described below when it is listed,
and set every CNAME to DNS only on Cloudflare. The values
differ for each domain; always publish the ones returned.
If your workspace has no tracking domain yet, the upgrade also gives it one
under this domain,
links.mail.example.com (or links2 to links5 when that
name is in use), the same way adding a new domain does. While the upgrade is
in progress, website.dnsUpgrade.trackingRecord lists its CNAME (type,
name, value, status, required: false) to publish with the other
records. It is optional and never holds up the switch: until it is verified,
links in your emails use Sequenzy’s shared tracking domains. A tracking domain
you already have stays as it is and is listed the same way while it is not
verified, when it is in this domain’s DNS zone; trackingRecord is null
otherwise. Once started, an
upgrade can’t be cancelled: until the switch it changes nothing, and the
domain keeps sending on its current records.
This endpoint requires the websites:write scope.
CLI: sequenzy websites upgrade-dns mail.example.com.
MCP: upgrade_sending_domain_dns.
Request
Return-path subdomain label for the new records, 1 to 63 characters.
Defaults to
rp; if rp is taken or already has DNS records, rp1, then
sqrp. A label that already has DNS records, or is the current return path
or the tracking domain label, is rejected with 400, and inbound is not
allowed. The SES return path is this label followed by 2 (rp2 by
default), moving to bounces or sesbounces if that name is in use. The
body is optional.Responses
status is in_progress, startedAt is set and records lists the CNAMEs
to publish, each with purpose, type, name, value, required,
status (pending, verified or misconfigured) and, when known, a
diagnostic explaining why it is not verified yet.After the switch
GET /api/v1/websites/{domain} then returns:
website.dnsRecords.platformDnsRecords and
website.bounceRecords. completed is shown for 30 days after the switch;
after that, status is unavailable because the domain already uses the
current records.