Get feature flag | LaunchDarkly | Documentation

Get a single feature flag by key

By default, this returns the configurations for all environments. You can filter environments with the env query parameter. For example, setting env=production restricts the returned configurations to just the production environment.

Recommended use

This endpoint can return a large amount of information. Specifying one or multiple environments with the env parameter can decrease response time and overall payload size. We recommend using this parameter to return only the environments relevant to your query.

Expanding response

LaunchDarkly supports the expand query param to include additional fields in the response, with the following fields:

For example, expand=evaluation includes the evaluation field in the response.

Authentication

Path parameters

Query parameters

Response

Global flag response

Experimentation data for the feature flag

Errors