---
title: "List dependent feature flags by environment"
method: GET
path: "/api/v2/flags/{projectKey}/{environmentKey}/{featureFlagKey}/dependent-flags"
tags: ["Feature flags (beta)"]
---

# List dependent feature flags by environment

`GET /api/v2/flags/{projectKey}/{environmentKey}/{featureFlagKey}/dependent-flags`

> ### Flag prerequisites is an Enterprise feature
>
> Flag prerequisites is available to customers on an Enterprise plan. To learn more, [read about our pricing](https://launchdarkly.com/pricing/). To upgrade your plan, [contact Sales](https://launchdarkly.com/contact-sales/).

List dependent flags across all environments for the flag specified in the path parameters. A dependent flag is a flag that uses another flag as a prerequisite. To learn more, read [Flag prerequisites](https://launchdarkly.com/docs/home/flags/prereqs).

## Path parameters

- `projectKey` string, string, required — The project key
- `environmentKey` string, string, required — The environment key
- `featureFlagKey` string, string, required — The feature flag key

## Response `200`

Dependent flags collection response

- DependentFlagsByEnvironment
  - `items` DependentFlag[], required — A list of dependent flags, which are flags that use the requested flag as a prerequisite
    - `name` string — The flag name
    - `key` string, required — The flag key
    - `_links` object, required — The location and content type of related resources
    - `_site` Link, required
      - `href` string
      - `type` string
  - `_links` object, required — The location and content type of related resources
  - `_site` Link, required
    - `href` string
    - `type` string

## Other responses

- `401` — Invalid access token
- `403` — Forbidden
- `404` — Invalid resource identifier
- `429` — Rate limited

---

[API](https://skmtc.net/launchdarkly/apis/launchdarkly-rest-api.md) · [All operations](https://skmtc.net/launchdarkly/apis/launchdarkly-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/launchdarkly/launchdarkly-rest-api/versions/69c5c9aafe78/schema)
