Skip to main content
GET
/
api
/
v2
/
flags
/
{projectKey}
/
{featureFlagKey}
/
dependent-flags
List dependent feature flags
curl --request GET \
  --url https://app.launchdarkly.com/api/v2/flags/{projectKey}/{featureFlagKey}/dependent-flags \
  --header 'Authorization: <api-key>'
{
  "items": [
    {
      "key": "dependent-flag-key-123abc",
      "environments": [
        {
          "key": "environment-key-123abc",
          "_links": {},
          "_site": "{ \"href\": \"/example-project/example-environment/features/example-dependent-flag\", \"type\": \"text/html\" }",
          "name": "Example environment"
        }
      ],
      "name": "Example dependent flag"
    }
  ],
  "_links": {},
  "_site": "{ \"href\": \"/example-project/~/features/example-prereq-flag\", \"type\": \"text/html\" }"
}

Documentation Index

Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Path Parameters

projectKey
string<string>
required

The project key

featureFlagKey
string<string>
required

The feature flag key

Response

Multi environment dependent flags collection response

items
object[]
required

An array of dependent flags with their environment information

The location and content type of related resources

_site
object
required

Details on how to access the prerequisite flag in the LaunchDarkly UI

Example:

"{ \"href\": \"/example-project/~/features/example-prereq-flag\", \"type\": \"text/html\" }"