Domains, DNS & SSL
Map domains to websites, manage supported DNS records, and request free SSL as separate, observable operations.
Domain mapping
Call domain_attach_to_website with an owned siteId and the domain name. The operation creates the hosting binding and DNS zone through NewCP. Domains and subdomains are treated consistently.
DNS eligibility
DNS tools are available only when the domain is associated with a website or active email service in the account. Use domains_list to obtain domainId, then dns_list_records, dns_upsert_record, or the strongly confirmed dns_delete_record.
Free SSL
SSL is intentionally separate from mapping. Before requesting a certificate, the mapped hostname must resolve directly to the website's assigned public hosting IP and return HTTP 200. Proxied DNS addresses do not pass this readiness check. Then call ssl_request and inspect progress through ssl_get_status, ssl_list_certificates, or operation_get_status.
Certificate validation
Call ssl_list_certificates to inspect sanitized free and managed certificate state and the current validation method. Before changing an eligible managed certificate, call ssl_get_validation_options to retrieve allowed methods and provider-approved email selections. ssl_change_validation_method switches domain-control validation to email, dns, or http. Wildcard certificates cannot use HTTP validation. The write requires the exact certificate domain confirmation and an idempotency key.
Reinstall a certificate
ssl_reinstall reapplies an existing certificate binding to an owned mapped domain on Windows or Linux hosting. Select a domain returned by ssl_list_certificates, repeat that exact domain in the confirmation field, provide a new idempotency key, and follow the result with operation_get_status when necessary. Reinstall does not issue a new certificate or bypass ownership checks.
Unmapping
domain_detach_from_website removes the domain binding and associated SSL data through the existing NewCP cleanup flow. Confirm the exact site and domain IDs before running it.