---
title: "Retrieves the collection of Environment resources."
method: GET
path: "/v1/environments"
tags: ["Environment"]
---

# Retrieves the collection of Environment resources.

`GET /v1/environments`

## Request

- Base URL: `https://api.fortrabbit.com`
- URL: `https://api.fortrabbit.com/v1/environments`
- Auth: HTTP bearer

Retrieves the collection of Environment resources.

## Query parameters

- `publicId[]` string[]
- `page` integer

## Response `200`

Environment collection

- EnvironmentApiRead[]
  - `publicId` string
  - `name` string
  - `softwareVersion` string, nullable
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `domains` string[]
  - `components` object
  - `phpVersion` string, nullable
  - `buildCommands` string[]
  - `postDeployCommands` string[]
  - `git` object
    - `branch` string, nullable
    - `directory` string, nullable

---

[API](https://skmtc.dev/fortrabbit/apis/fortrabbit-api.md) · [All operations](https://skmtc.dev/fortrabbit/apis/fortrabbit-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fortrabbit/apis/fortrabbit-api/revisions/36ca73befa52?raw)
