Register a subdomain
Register a new custom subdomain and receive its DNS records. Optionally pass webhook_url to get a signed POST callback on every status change instead of polling; the signing secret is returned once in this response as webhook_secret.
CNAME record and the two routing A records. You can add them all to your DNS provider in a single pass. The A records start routing traffic only after your certificate is issued, so adding them early is safe.
Optionally pass a webhook_url to receive a signed POST callback each time the subdomain’s status changes, instead of polling Get subdomain. The webhook_secret used to verify those callbacks is returned only in this response, so store it now. It can’t be retrieved later.
Subdomains are immutable. To change a subdomain, delete it and register a new one.
See the Custom subdomain setup guide for the full flow.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Management API version.
Body
The FQDN to register as a custom subdomain.
64"metrics.yourwebsite.com"
HTTPS URL that receives a signed POST callback each time the subdomain status changes, removing the need to poll GET /subdomains/{id}. The URL must be publicly reachable — IP addresses, custom ports and hosts resolving to private networks are rejected. Deliveries are signed; see webhook_secret in the create response for the verification scheme.
2048"https://customer.com/hooks/fp-subdomain"
Response
Subdomain created.