Domains
Launch Domains let you connect custom domains to an environment, manage apex-domain redirection and SSL certificates (automatic or your own), and verify the DNS records needed to bring each domain live.
Get all Domains
https://launch-api.contentstack.com/projects/{project_uid}/environments/{environment_uid}/domainsThe Get all Domains request fetches the list of all domains in an environment of your project, including each domain's current status and the DNS records needed to verify it.
{
"pagination": {
"count": 1,
"limit": 10,
"skip": 0
},
"domains": [
{
"uid": "690xxxxxxxxxxxxxx95f",
"url": "www.mysite.com",
"isCustomDomain": true,
"redirectToDomain": null,
"redirectionStatusCode": null,
"sslMethod": "AUTOMATIC",
"customCertificateExpiresAt": null,
"createdAt": "2025-11-06T07:39:19.230Z",
"updatedAt": "2025-11-06T07:39:53.582Z",
"domainInfo": {
"status": "pending",
"sslStatus": "pending_validation",
"hostnameVerificationRecord": {
"txt_name": "_cf-custom-hostname.www.mysite.com",
"txt_value": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"sslValidationRecord": {
"dcv_name": "_acme-challenge.www.mysite.com",
"dcv_value": "www.mysite.com.xxxxxxxxxxxx.dcv.cloudflare.com"
},
"hostnameVerificationStatus": "not_propagated",
"sslValidationStatus": "not_propagated"
}
}
]
}Update a Domain
https://launch-api.contentstack.com/projects/{project_uid}/environments/{environment_uid}/domains/{domain_uid}The Update a Domain request updates a domain in an environment of your project, including uploading or renewing its custom SSL certificate. Send the domain's current url (from Get all Domains) unless you intend to rename it. To upload a certificate, set sslMethod to CUSTOM and provide customCertificate and customPrivateKey, plus intermediateCertificates if the chain is not already included in customCertificate; the certificate fields are ignored unless sslMethod is set. If sslMethod is omitted, the domain's existing SSL configuration is left unchanged. Renaming a domain that uses a custom certificate requires providing the certificate again.
Rename a domain:
{
"url": "www.updated-mysite.com"
}undefined
{
"url": "www.mysite.com",
"sslMethod": "CUSTOM",
"customCertificate": "{
"domain": {
"uid": "690xxxxxxxxxxxxxx95f",
"url": "www.updated-mysite.com",
"isCustomDomain": true,
"redirectToDomain": null,
"redirectionStatusCode": null,
"sslMethod": "AUTOMATIC",
"customCertificateExpiresAt": null,
"createdAt": "2025-11-06T07:39:19.230Z",
"updatedAt": "2025-11-06T07:39:53.582Z"
}
}