Custom Domains
Attach a custom domain to a site
Validates the hostname, registers a Cloudflare Custom Hostname under our SaaS zone, and returns the row in pending_dns. The customer completes setup by adding a single CNAME record.
post/sites/{siteId}/custom-domains
Request
- Base URL: https://api.nippy.host
- URL: https://api.nippy.host/sites/{siteId}/custom-domains
- Auth: bearer (a scheme the document does not define)
Path parameters
siteIdstring required
Site UUID
Request body
Example request
{
"hostname": "example.com"
}Response
Example response
{
"hostname": "example.com",
"publicUrl": "https://example.com",
"dnsRecordName": "www",
"dnsPreflight": {
"expectedTarget": "cname.nippy.site"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.