The environment object

⚠️
Preview — this feature is being built; the design below is the spec.

The environment object as the API returns it. Every field below appears in every response that returns this object; fields with no value are null rather than missing.

Example

{
  "id": "env_01JC5B2D4F6H8K0M2P4R",
  "type": "environment",
  "name": "data-analysis",
  "base_image": "syntic/python:3.12",
  "packages": {
    "apt": [
      "git"
    ],
    "pip": [
      "pandas==2.2.3",
      "matplotlib"
    ],
    "npm": []
  },
  "setup_script": "mkdir -p /workspace/out",
  "files": [],
  "network": {
    "mode": "none",
    "allowed_hosts": []
  },
  "resources": {
    "cpu": 2,
    "memory_mb": 4096,
    "disk_mb": 10240
  },
  "timeouts": {
    "command_seconds": 300,
    "idle_minutes": 15,
    "max_lifetime_minutes": 240
  },
  "env_vars": {
    "TZ": "UTC"
  },
  "vault_secrets": [],
  "build": {
    "status": "ready",
    "image_digest": "sha256:9f2c...",
    "finished_at": "2026-11-04T08:12:40Z",
    "error": null
  },
  "created_at": "2026-11-04T08:10:02Z",
  "updated_at": "2026-11-04T08:10:02Z"
}

Fields

FieldTypeDescription
idstringUnique id of this object.
typestringThe object type, always environment.
namestringName shown in the Console and in reports.
base_imagestringSee the endpoint pages below.
packagesobjectNested detail; see the endpoint pages below.
setup_scriptstringSee the endpoint pages below.
filesarrayNested detail; see the endpoint pages below.
networkobjectNested detail; see the endpoint pages below.
resourcesobjectNested detail; see the endpoint pages below.
timeoutsobjectNested detail; see the endpoint pages below.
env_varsobjectNested detail; see the endpoint pages below.
vault_secretsarrayNested detail; see the endpoint pages below.
buildobjectNested detail; see the endpoint pages below.
created_atstringWhen it was created, RFC 3339 UTC (some older objects use Unix seconds).
updated_atstringWhen it last changed.

Returned by

Was this page helpful?