curl -X POST https://api.growthbook.io/api/v1/environments \
-d '{"id": "new-env", "description": "My new environment" }' \
-u secret_abc123DEF456:{
"environment": {
"id": "<string>",
"description": "<string>",
"toggleOnList": true,
"defaultState": true,
"projects": [
"<string>"
],
"parent": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://growthbook-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
If using Bearer auth, pass the Secret Key as the token:
curl https://api.growthbook.io/api/v1 \
-H "Authorization: Bearer secret_abc123DEF456"The ID of the new environment
The description of the new environment
Show toggle on feature list
Default state for new features
An environment that the new environment should inherit feature rules from. Requires an enterprise license
Success
Show child attributes
curl -X POST https://api.growthbook.io/api/v1/environments \
-d '{"id": "new-env", "description": "My new environment" }' \
-u secret_abc123DEF456:{
"environment": {
"id": "<string>",
"description": "<string>",
"toggleOnList": true,
"defaultState": true,
"projects": [
"<string>"
],
"parent": "<string>"
}
}