Is AI recommending you? Ask Contentstack Canoe for free
Is AI recommending your brand? Find out with Contentstack Canoe for free
Contentstack.comAcademyLogin
CS-log-dark.svgCS-log-dark.svg
  • Changelog
  • APIs
  • SDKs

Platform

  • Solution Center
  • Marketplace
  • Changelog
  • Developers & IT
  • Business users
  • Digital leaders
  • Developer Fast Track
  • Plans & Pricing

Solutions

  • Retail
  • Travel and tourism
  • Financial services
  • Technology
  • Manufacturing
  • E-commerce
  • Localization
  • Personalization
  • Portals and knowledge bases

Resources

  • Academy
  • Docs
  • Contentstack for Developers
  • Agents Start Here
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • The Forrester Wave™: Digital Experience Platforms, Q4 2025
  • Webinars
  • Glossary
  • Content generative library
  • Community

Customers

  • Case Studies
  • Customer Care
  • Contentstack Experience Awards
  • Customer support

Partners

  • Overview
  • Find a partner
  • Login

Company

  • About us
  • News
  • Customer support portal
  • Contact

Social

  • Facebook
  • LinkedIn
  • Instagram
  • GitHub
  • YouTube
  • Discord
  • X
LegalTermsPrivacyTrust Center

Cookie settings

Copyright © 2026 Contentstack Inc. All rights reserved.
/
  1. Home
  2. APIs
  3. Launch API
  4. Domains

Domains

markdownView as Markdown

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

GEThttps://launch-api.contentstack.com/projects/{project_uid}/environments/{environment_uid}/domains

The 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.

Sample Response
Status|200 OK
12345678910111213141516171819202122232425262728293031323334
{
  "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

PUThttps://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

Sample Request
1234
{
  "url": "www.mysite.com",
  "sslMethod": "CUSTOM",
  "customCertificate": "
Sample Response
Status|200 OK
12345678910111213
{
  "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"
  }
}
Hide Parameters

URL Parameters

environment_uidrequiredstring

Enter the environment_uid of the environment.

project_uidrequiredstring

Enter the project_uid of the project.

Query Parameters

limitoptionalstring

The "limit" parameter will return a specific number of domains (in between 1-100) in your response based on the value you provide. If there are 20 domains and you want to fetch only 10 domains, set the limit as 10.

skipoptionalstring

The "skip" parameter will skip a specific number of domains in the output. For example, if there are 20 domains and you want to skip the first 2 to get only the last 18 in the response body, you need to specify "2" here.

Headers

authorizationoptionalstring

Use a bearer token to authenticate if you're not using the authtoken header. Format: Bearer <token>. If provided, the organization_uid header isn't required.

authtokenoptionalstring

Use an authentication token if the Authorization header isn't provided. Requires the organization_uid header. When using authtoken authentication, you must explicitly provide the organization_uid header. The organization_uid cannot be derived from project_uid for Launch REST APIs.

x-cs-api-versionoptionalstring

Enter the API version. Default is 1.0

organization_uidoptionalstring

⚠️ REQUIRED when using authtoken authentication - you must explicitly provide this header. Optional with Authorization Bearer token (organization_uid can be derived from the token).

Hide Parameters

URL Parameters

domain_uidrequiredstring

Enter the uid of the domain.

environment_uidrequiredstring

Enter the environment_uid of the environment.

project_uidrequiredstring

Enter the project_uid of the project.

Headers

authorizationoptionalstring

Use a bearer token to authenticate if you're not using the authtoken header. Format: Bearer <token>. If provided, the organization_uid header isn't required.

authtokenoptionalstring

Use an authentication token if the Authorization header isn't provided. Requires the organization_uid header. When using authtoken authentication, you must explicitly provide the organization_uid header. The organization_uid cannot be derived from project_uid for Launch REST APIs.

x-cs-api-versionoptionalstring

Enter the API version. Default is 1.0

organization_uidoptionalstring

⚠️ REQUIRED when using authtoken authentication - you must explicitly provide this header. Optional with Authorization Bearer token (organization_uid can be derived from the token).

Body Parameters

urlrequiredstring

Domain URL

redirectionStatusCodeoptionalnumber

HTTP status code used for the redirect, if this is a redirect domain

redirectToDomainoptionalstring

Domain this apex domain redirects to. Omit to keep the current redirect; send null to remove it.

sslMethodoptionalstring

SSL method for this domain

One of: AUTOMATIC, CUSTOM

customCertificateoptionalstring

PEM certificate chain (required to change/rename while CUSTOM)

customPrivateKeyoptionalstring

PEM private key (required to change/rename while CUSTOM)

intermediateCertificatesoptionalstring

Intermediate certificates, if not already included in customCertificate