Set the custom domain
Sets the account’s custom domain, replacing any previous one, and returns the DNS records to add: a TXT record that proves ownership, and a CNAME (or, for a root domain, addresses) pointing at this server. Requires authentication.
1 min read
put/custom-domain
Request example
Response
put/custom-domain
Authorization
2 alternative authorization methods available — see the spec for details.
Body
application/jsonResponses
application/json
OK
The domain, as DNS knows it (lowercase ASCII).
The host the domain's CNAME record points at.
Where the TXT record that proves ownership goes.
The TXT record's value.
Every record to add: the TXT record, and a CNAME to the target, or for a root domain A and AAAA records with its addresses.
Whether DNS proved ownership and the domain opens the primary resume.
When DNS was last checked.