Add a hostname to the profile
Changed onAdds a hostname to the profile without showing a publication yet (attach one later with PUT /api/domains/{hostname}/attachment). A new hostname whose domain is not registered is refused (400 DOMAIN_NOT_REGISTERED). For an added hostname the first automatic DNS check runs about 15 minutes later (nextCheckAt). Create the DNS records[] of the answer, then call POST /api/domains/{hostname}/check once; BrewPage keeps checking on its own: read GET /api/domains/{hostname} until status is active.
Request
- Base URLhttps://brewpage.app
- AuthAPI key in header X-Owner-Token
Headers
Admin token of your BrewPage profile
Request body
Add a hostname to the profile without a publication.
Hostname to add, e.g. www.example.com or example.com; Unicode names accepted
Response
Already in the profile; same body as 201
A custom domain of a profile and what to do next (nextStep): create the records[] in DNS, call the check route once, then read the domain until status is active.
Hostname in ASCII (A-label), lowercase, e.g. www.example.com
Unicode form for display
true when the hostname is the registered domain itself (example.com): routing uses an A or ALIAS record instead of CNAME
pending_dns (create the records), verifying (DNS found, certificate being issued), active (serving) or lost (records broke after activation; still served until graceEndsAt, then disconnected: restore the records and check again)
true when BrewPage suspended this domain: it does not serve and cannot be checked, moved or removed; write to info@brewpage.app
What blocks progress now, absent when nothing does: DOMAIN_NOT_REGISTERED (the domain does not exist yet; register it with a domain registrar, then create the records), TXT_MISSING, TXT_WRONG, ROUTING_MISSING, ROUTING_WRONG, FOREIGN_AAAA, CAA_BLOCKS (fix the matching row of records[]), DOMAIN_TAKEN (this hostname is not available: use another hostname or write to info@brewpage.app), QUEUE_FULL (DNS is right, verification waits its turn; retried automatically), CERT_PENDING (certificate on its way), CERT_FAILED (certificate could not be issued; check DNS, then check again), DNS_LOST (records stayed broken past graceEndsAt, so the domain was disconnected; restore them and check again), CHECK_PAUSED (older rows only; the next automatic check replaces it), RESOLVER_UNAVAILABLE (DNS did not answer; retried), PUBLICATION_GONE (attach another publication), NOT_ELIGIBLE_<reason> (the publication cannot take a custom domain; reasons as ErrorResponse.reason)
What to do next, in plain English (one to three sentences) with the exact routes of this domain, e.g. create the records[] at the DNS provider, then POST the check route once and GET this domain until status is active. Follow it and relay it to the user; always present
DNS records to create, in order: TXT for ownership, then CNAME (subdomain) or A plus optional ALIAS (apex)
DNS provider once known: cloudflare, godaddy, namecheap, porkbun, squarespace, ionos, hostinger, ovh, route53, dnspod, other
Publication a custom domain shows.
true when visitors see the publication on this hostname now
https://<hostname>/ while serving
Last DNS check
Next automatic DNS check
While lost: served until this time, then disconnected unless the records are restored
Set answers only: true when the publication moved from its BrewPage path address to its own subdomain (required for a custom domain)
Set answers only: hostname that was on this publication before; it stays in the profile, unattached
Changes
- info
added the optional property
levelto the response with the status - info
added the optional property
levelto the response with the status - info
added the optional property
levelto the response with the status
3 more changes in this revision
- info