---
title: "List environments"
method: GET
path: "/environments"
tags: ["environments"]
---

# List environments

`GET /environments`

List environments

## Query parameters

- `name` string, custom-name

## Response `200`

List environments

- Environment[]
  - `appliedIntentsCount` integer, required
  - `id` string, required
  - `labels` Label[]
    - `key` string, required
    - `value` string
  - `name` string, required
  - `namespaces` object[], required
    - `id` string, required
  - `serviceCount` integer, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `408` — Request Timeout
- `409` — Conflict
- `422` — Unprocessable Entity
- `500` — Internal Server Error
- `default`

## Changes

> 33 revisions in range; 1 could not be searched.

- **2025-04-16** `6b4369907cb8` — 1 info
  - added the non-success response with the status `408`
- **2023-02-23** `01cfe7c2bbaf` — 1 info
  - added the new optional `query` request parameter `labels`
- **2023-02-08** `76634bc9add8` — 2 breaking, 1 info
  - added the pattern `^[A-Za-z][A-Za-z0-9- _]{0,61}[A-Za-z0-9]$` to the `query` request parameter `name`
  - for the `query` request parameter `name`, the type/format was changed from `string`/`` to `string`/`custom-name`
  - added the non-success response with the status `422`
- **2023-01-31** `015a13c6e1c3` — 1 warning
  - deleted the `query` request parameter `labels`
- **2023-01-31** `e24061547d5d` — 1 info
  - added the non-success response with the status `401`

[Full history](https://skmtc.dev/otterize/apis/otterize-api-server/changes/environments/get.md)

---

[API](https://skmtc.dev/otterize/apis/otterize-api-server.md) · [All operations](https://skmtc.dev/otterize/apis/otterize-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/otterize/otterize-api-server/revisions/ec9167824493/schema)
