curl --request GET \
--url https://statsigapi.net/console/v1/environments \
--header 'STATSIG-API-KEY: <api-key>'{
"message": "Environments read successfully.",
"data": {
"environments": [
{
"name": "development",
"id": "0.35629335902367476",
"isProduction": false,
"requiresReview": false,
"requiresReleasePipeline": true
},
{
"name": "staging",
"id": "0.015089163460661137",
"isProduction": false,
"requiresReview": false,
"requiresReleasePipeline": true
},
{
"name": "production",
"id": "0.4067426155658289",
"isProduction": true,
"requiresReview": true,
"requiresReleasePipeline": true
}
]
}
}curl --request GET \
--url https://statsigapi.net/console/v1/environments \
--header 'STATSIG-API-KEY: <api-key>'{
"message": "Environments read successfully.",
"data": {
"environments": [
{
"name": "development",
"id": "0.35629335902367476",
"isProduction": false,
"requiresReview": false,
"requiresReleasePipeline": true
},
{
"name": "staging",
"id": "0.015089163460661137",
"isProduction": false,
"requiresReview": false,
"requiresReleasePipeline": true
},
{
"name": "production",
"id": "0.4067426155658289",
"isProduction": true,
"requiresReview": true,
"requiresReleasePipeline": true
}
]
}
}Optional header to respect review settings for mutation endpoints.
Get Environments Response
A simple string explaining the result of the operation.
A single result.
Show child attributes
Show child attributes
The name of the environment.
A unique identifier for the environment.
Whether the environment is production.
Whether the environment requires review.
Whether the environment requires a release pipeline.
The ID of the review group that the environment requires review from.
Was this page helpful?