---
title: "List environments"
method: GET
path: "/api/v2/feature-flags/environments"
tags: ["Feature Flags"]
---

# List environments

`GET /api/v2/feature-flags/environments`

Returns a list of environments for the organization.
Supports filtering by name and key.

## Query parameters

- `name` string
- `key` string
- `limit` integer
- `offset` integer

## Response `200`

OK

- ListEnvironmentsResponse — Response containing a list of environments.
  - `data` Environment[], required — List of environments.
    - `attributes` EnvironmentAttributes, required — Attributes of an environment.
      - `created_at` string, date-time — The timestamp when the environment was created.
      - `description` string, nullable — The description of the environment.
      - `is_production` boolean — Indicates whether this is a production environment.
      - `key` string — The unique key of the environment.
      - `name` string, required — The name of the environment.
      - `queries` string[] — List of queries to define the environment scope.
      - `require_feature_flag_approval` boolean — Indicates whether feature flag changes require approval in this environment.
      - `updated_at` string, date-time — The timestamp when the environment was last updated.
    - `id` string, uuid, required — The unique identifier of the environment.
    - `type` 'environments', required — The resource type.
  - `meta` EnvironmentsPaginationMeta — Pagination metadata for environments.
    - `page` EnvironmentsPaginationMetaPage — Pagination metadata for environments list responses.
      - `total_count` integer — Total number of items.
      - `total_filtered_count` integer — Total number of items matching the filter.

## Other responses

- `403` — Forbidden
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
