Environments
Launch environments help you deploy and manage different versions of your project independently. Each environment is auto-deployed to a unique URL and can be customized to match your development workflow.
Get all Environments
https://launch-api.contentstack.com/projects/{project_uid}/environmentsThe Get all Environments request fetches the list of all environments in your project.
URL Parameters
project_uidrequiredstringQuery Parameters
skipoptionalstringlimitoptionalstringHeaders
authorizationoptionalstringauthtokenoptionalstringx-cs-api-versionoptionalstringorganization_uidoptionalstring{
"pagination": {
"count": 1,
"limit": 10,
"skip": 0
},
"environments": [
{
"uid": "690xxxxxxxxxxxxxx95f",
"name": "Test Environment",
"description": "It is a test environment.",
"project": "691xxxxxxxxxxxxx9103",
"gitBranch": "main",
"buildCommand": "npx @11ty/eleventy",
"outputDirectory": "./_site",
"frameworkPreset": "OTHER",
"environmentVariables": [
{
"key": "key1",
"value": "value1"
}
],
"autoDeployOnPush": true,
"nodeVersion": "22",
"organizationUid": "bltxxxxxxxxxxxx3589",
"createdAt": "2025-11-06T07:39:19.230Z",
"updatedAt": "2025-11-06T07:39:53.582Z",
"createdBy": "bltxxxxxxxxxxxx5783",
"updatedBy": "bltxxxxxxxxxxxx5783",
"hasLyticsEnabled": false,
"isCachePrimingEnabled": false,
"passwordProtection": {
"isEnabled": false
}
}
]
}Create an Environment
https://launch-api.contentstack.com/projects/{project_uid}/environmentsGet an Environment
https://launch-api.contentstack.com/projects/{project_uid}/environments/{environment_uid}Update an Environment
https://launch-api.contentstack.com/projects/{project_uid}/environments/{environment_uid}Delete an Environment
https://launch-api.contentstack.com/projects/{project_uid}/environments/{environment_uid}The Delete an Environment request lets you delete an existing environment in your project.
Revalidate CDN Cache
https://launch-api.contentstack.com/projects/{project_uid}/environments/{environment_uid}/revalidate-cdn-cache