No results for ""
  • Home
  • API docs


Target with flags

Read time: 2 minutes
Last edited: May 01, 2024


This category explains how to use flag targeting to control which of your customers receive a variation of a feature flag, based on their context. Configuring which contexts receive which variation of a flag is referred to as a flag's targeting.

To learn more about how your application and LaunchDarkly SDKs work together to serve feature flag variations, read LaunchDarkly architecture.

Flag targeting

Flag targeting targets "contexts." Contexts are people, services, machines, or other resources that encounter feature flags in your product. You can target end users of your application, devices, systems, organizations, or anything else that can be uniquely identified.

You can use flag targeting to release features to segments, individuals, or mobile apps and devices. You can also release features based on custom rules you create. You can even set expiration dates for flag targeting if you know you only want customers to receive a flag for a specific period of time.

Here are example targeting rules on a feature flag:

Targeting rules on a feature flag.
Targeting rules on a feature flag.
Migration flags are different

Migration flags show different information on their targeting page than feature flags do. A migration flag's targeting page shows information about the migration's health and the cohorts it is targeted to. To learn more, read Migration flags.