Admin API / Types

AddCustomDomainInput

Input

The custom domain to add.

input AddCustomDomainInput

Input fields

FieldTypeDescription
domainString!The domain, such as example.com or shop.example.com: a host name only, with no scheme, port, path, query, fragment or user information. Upper case, one trailing dot and a non-ASCII label are accepted: the domain is stored lowercase, with no trailing dot and with Punycode labels, such as xn--bcher-kva.example for bücher.example. One leading www. is removed: the domain is stored without it. A new domain gets a Cloudflare storefront at its storefront host: {storefrontLabel}.{domain}, or the domain itself with no label. For an apex domain with no label, it serves www.{domain} as a 308 redirect to the domain after www.{domain} is verified. A domain gets no storefront and stores no label when the store has a VERIFIED storefront origin, or an unreleased origin in any state on https://{domain}, https://www.{domain} or https://{storefrontLabel}.{domain}: the store's own site serves the storefront.
storefrontLabelStringThe first label of the storefront host, such as shop for shop.example.com. Absent or null: the storefront serves at the domain itself. The label is read in lower case with no surrounding spaces. It is one DNS label of ASCII letters, digits and interior hyphens, with no hyphens at positions 3 and 4, and it is not a label that District reserves, such as live or checkout. An internationalised label is not accepted, also as an A-label. Only a delete and a new add change the label of an enabled domain.