Get feature flag
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:
evaluation
includes evaluation information within returned environments, including which context kinds the flag has been evaluated for in the past 30 daysmigrationSettings
includes migration settings information within the flag and within returned environments. These settings are only included for migration flags, that is, wherepurpose
ismigration
.
For example, expand=evaluation
includes the evaluation
field in the response.
Path parameters
Headers
Query parameters
A comma-separated list of fields to expand in the response. Supported fields are explained above.
Response
A human-friendly name for the feature flag
Which type of client-side SDKs the feature flag is available to
Migration-related settings for the flag
Details on the environments for this flag. Only returned if the request is filtered by environment, using the filterEnv
query parameter.
Deprecated, use clientSideAvailability
. Whether this flag should be made available to the client-side JavaScript SDK
Deprecated, use experiments
instead