Skip to main content
GET
/
api
/
v1
/
environments
List environments
curl --request GET \
  --url https://api.example.com/api/v1/environments \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "docker",
      "revision": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
      "image": {
        "docker": "<string>",
        "dockerfile": {
          "type": "inline",
          "value": "<string>"
        }
      },
      "resources": {
        "cpu": 123,
        "memory": "<string>",
        "disk": "<string>"
      },
      "network": {
        "allow": [
          "<string>"
        ]
      },
      "lifecycle": {
        "preserve": true,
        "stop_on_terminal": true,
        "auto_stop": "<string>"
      },
      "labels": {},
      "volumes": [
        {
          "id": "<string>",
          "mount_path": "<string>",
          "subpath": "<string>"
        }
      ],
      "env": {}
    }
  ],
  "meta": {
    "total": 1
  }
}

Authorizations

Authorization
string
header
required

Raw dev token passed as Authorization: Bearer fabro_dev_... when server.auth.methods includes dev-token.

Response

Environment definitions

List envelope for environment definitions.

data
object[]
required
meta
object
required

Metadata for environment list responses.