Cloud
The environment object
An environment is one copy of a project's services, variables and volumes: production (made with the project, never deleted), staging or any other name.
Attributes
envstring: The environment's id.namestring: Its name, unique in the project.is_productionboolean: True for the production environment.service_countnumber: Services in it.statusstring: ok, needs_attention, deploying, stopped or empty.created_attimestamp: When it was created, Unix seconds.
Example
{
"data": {
"env": "env_01jdk3m9x5h2p8r4t6y1u3i0oa",
"name": "production",
"is_production": true,
"service_count": 3,
"status": "ok",
"created_at": 1764324999
}
}
Endpoints
POSTApply a config filePOSTChange variables in bulkPOSTCreate a servicePOSTCreate a service groupPOSTCreate a volumePOSTCreate an environmentDELETEDelete a project variableDELETEDelete a service groupDELETEDelete an environmentGETExport the environmentGETGet the variables graphGETList environmentsGETList project activityGETList project variablesGETList service groupsGETList servicesGETList volumesPOSTPlan a config filePOSTReveal a project variablePOSTReveal all project variablesPUTSet a project variablePATCHUpdate a service groupPOSTValidate variables text