Dispra Docs

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

  • env string: The environment's id.
  • name string: Its name, unique in the project.
  • is_production boolean: True for the production environment.
  • service_count number: Services in it.
  • status string: ok, needs_attention, deploying, stopped or empty.
  • created_at timestamp: 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