domains
POST /v1/domains/connect
Host DNS for a domain the customer already owns.
Uwierzytelnianie
Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie domains.dns.manage; klucz bez niego jest odrzucany z kodem 403, a nie 404.
Miejsce na identyfikator organizacji
Ten punkt końcowy przyjmuje org_id jako pole w treści JSON.
Identyfikator Twojej organizacji znajduje się na ekranie kluczy API w Twoim panelu, obok samego klucza. Jest to ten sam identyfikator w każdym wywołaniu, które wykonujesz.
Wypróbuj
Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.
curl -X POST https://api.zinndigital.com/v1/domains/connect \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "fqdn": <string> }'Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API
Szczegóły
Creates the domain's zone at our DNS provider, branded with our vanity nameservers in the same operation, and returns the delegation to set at the customer's **own** registrar. This is the BYO path — we become the authoritative DNS, **not** the registrar — so it needs no registrar credential and is how "premium DNS included on every plan" is delivered. The domain must be a zone apex (a subdomain is a `422`) and must not already exist on the platform (a `409` — worded so it never confirms another tenant holds it). Requires `domains.dns.manage`, the same authority that governs the records this makes editable. ⛔ There is deliberately **no `product_line` field**: it is derived server-side from the org's subscriptions, because it decides whether shared fleet A/AAAA records are hidden from this customer. Accepting it would let a Footprint-Free customer connect a domain as `mainstream` and read the fleet IPs.
Treść żądania
| Nazwa | Typ | Wymagane | Co to jest |
|---|---|---|---|
fqdn | string | Tak | The domain to host DNS for. Must be a zone apex, not a subdomain. |
org_id | Uuid | Nie | The organization to connect it in. Optional when the caller holds `domains.dns.manage` in exactly one org; required otherwise. |
Odpowiedź
| Nazwa | Typ | Wymagane | Co to jest |
|---|---|---|---|
id | Uuid | Tak | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
org_id | Uuid | Tak | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
fqdn | Hostname | Tak | A fully-qualified DNS hostname, lowercase, no trailing dot. |
sld | string | Tak | — |
tld | string | Tak | — |
product_line | string | Nie | The product line this domain was created on. **Not decoration** — it is what decides whether the shared fleet A/AAAA records are hidden from the customer (register #93), so the… |
ownership_mode | string<registered, connected, transferring_in> | Tak | — |
status | DomainStatus | Tak | A domain's lifecycle state (docs/31 §4.10). |
registered_at | object | Nie | — |
expires_at | object | Nie | — |
auto_renew | boolean | Tak | — |
renew_years | integer | Tak | — |
registrar_lock | boolean | Nie | — |
privacy_enabled | boolean | Nie | — |
nameservers | string[] | Tak | — |
dnssec_enabled | boolean | Nie | — |
site_id | Uuid | null | Nie | The site this domain points at, if any. |
created_at | string | Tak | — |
updated_at | string | Nie | — |
delegation | Delegation | Tak | Where a domain's DNS delegation actually points. Several observations, not one boolean, because they answer different questions and collapsing them hides the only one that means… |
Błędy, które ten punkt końcowy może zwrócić
401 · 403 · 409 · 422 · 429 · 503