Get a domain's settings
One domain of the workspace as the Domains tool shows it: whether it is registered here, where its records are served, its nameservers, renewal, WHOIS privacy and transfer lock, child nameservers, DNSSEC, ownership verification and any transfer in progress. `domain` is a registered or custom domain's zone, like example.com, or an app's own address.
Authorization
cloady Personal API token (cldy_…)
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/domains/string"{ "domain": "string", "kind": "registered", "dns": "registrar", "verified": true, "verification": { "name": "string", "value": "string" }, "zoneTaken": true, "nameservers": [ "string" ], "registration": { "expiresAt": "string", "autoRenew": true, "renewal": -9007199254740991, "privacy": true, "locked": true, "glue": [ { "host": "string", "ips": [ "string" ] } ] }, "dnssec": { "enabled": true, "ds": [ { "keyTag": -9007199254740991, "algorithm": -9007199254740991, "digestType": -9007199254740991, "digest": "string" } ] }, "transfer": { "direction": "in", "status": "pending", "startedAt": "string", "registrar": "string", "error": "string", "price": -9007199254740991, "detail": "string", "paymentIntentId": "string", "refund": "pending", "submitted": true }, "transferPrice": -9007199254740991}Add a domain without an app POST
Adds a domain you own to the workspace before any app serves it. Its zone on Cloady's nameservers (ns1 and ns2.cloady.io) is created once the domain is proven yours: by the `verification` TXT record from getWorkspaceDomain (then verifyDomain), or by its nameservers already pointing at ns1 and ns2.cloady.io. Attach it to an app later with createDomain. Answers 409 `host_taken` when another workspace has the host, 409 `domain_claimed` when another workspace registered, verified or holds the zone of the domain it belongs to, 409 `host_reserved` for a name under cloady.io or cloady.com, and 400 `bad_domain` for a public suffix like co.uk. Needs the developer role.
Change a domain's settings PATCH
Turns auto-renew on or off and moves a registered domain between Automatic DNS (`nameservers: null`), Cloady's nameservers (ns1 and ns2.cloady.io) and your own nameservers, which stop Cloady's records answering once they propagate. Moving between Automatic DNS and Cloady's nameservers copies the domain's records across first. `dnssec` signs a zone on Cloady's nameservers; publish the DS record from getWorkspaceDomain at the registrar to finish, and remove it there before turning DNSSEC off. Needs the developer role.