domains

POST /v1/domains/{domainId}/nameservers/resync

Point this domain's nameservers at its site — or at our DNS — now.

All domains endpoints

All developer docs →

Authentication

Send an API key as a bearer token. The key must carry the domains.dns.manage permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/domains/{domainId}/nameservers/resync \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

Starts a durable resync (a Temporal workflow) that re-derives the nameservers the domain's site needs from the DNS provider actually holding its zone, and sets them at the registrar — ours, or the customer's connected one. Returns 202; the outcome lands on last_outcome a few seconds later. A domain with no site (docs/844) is "use our nameservers": when we hold no zone for it (has_zone: false) the press PREPARES one on our DNS with a copy of what the domain publishes today and changes nothing at the registrar (last_outcome: zone_prepared), so the records can be checked first; when we do, the press delegates the domain to the nameservers that zone reports. 409 when no credential we hold can move it (holder none or locked). Requires domains.dns.manage.

Parameters

NameTypeRequiredWhat it is
domainId (path)UuidYesThe domain's id.

Response

NameTypeRequiredWhat it is
domain_idstringYes—
fqdnstringYes—
holderstringYeszinn, locked, connected_unknown, none, or the vendor slug of the linked registrar account holding the domain (godaddy, namecheap, porkbun, namecom, gandi,…
has_sitebooleanYes—
has_zonebooleanYesWhether we hold a DNS zone for this domain (docs/844). For a domain with no site the POST PREPARES that zone when this is false (a copy of what the domain publishes today,…
dns_copyobjectYesWhat we copied of the domain's live DNS into our zone (a transfer-in, or the first "use our nameservers" press). null means never copied. unsupported lists records we SAW at…
nameserversstring[]YesThe last delegation we applied or read (a cache; the registrar is the truth).
last_synced_atstringYes—
last_outcomestring<aligned, already, byo, no_registrar, unknown, failed, locked, no_site, missing, zone_prepared, zone_not_answering>Yesnull means never resynced. aligned moved it; already it was right; byo no connected registrar could move it; failed the registrar refused; unknown the authority could…
last_triggerstring<manual, site_provisioned, site_renamed, cdn_changed, dns_provider_changed, plan_changed, site_transferred, site_moved, registrar_connected, authority_moved, registration, transfer_in>Yes—
startedbooleanNoPresent on the POST response only.

Errors this endpoint can return

401 · 403 · 404 · 409 · 429 · 503