provider Feature flags GET /api/v2/flags/{projectKey}/{featureFlagKey}/expiring-user-targets/{environmentKey}
@utdk/launchdarkly /api/v2/flags/{projectKey}/{featureFlagKey}/expiring-user-targets/{environmentKey}
Get expiring user targets for feature flag
> ### Contexts are now available > > After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should use [Get expiring context targets for feature flag](https://launchdarkly.com/docs/api/feature-flags/get-expiring-context-targets) instead of this endpoint. To learn more, read [Contexts](https://launchdarkly.com/docs/home/observability/contexts). Get a list of user targets on a feature flag that are scheduled for removal.
projectKey path required
The project key
string
environmentKey path required
The environment key
string
featureFlagKey path required
The feature flag key
string

Try it

Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getexpiringusertargets
GET/api/v2/flags/{projectKey}/{featureFlagKey}/expiring-user-targets/{environmentKey}
> ### Contexts are now available > > After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should use [Get expiring context targets for feature flag](https://launchdarkly.com/docs/api/feature-flags/get-expiring-context-targets) instead of this endpoint. To learn more, read [Contexts](https://launchdarkly.com/docs/home/observability/contexts). Get a list of user targets on a feature flag that are scheduled for removal.

Parameters

required

The project key

required

The environment key

required

The feature flag key

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.getexpiringusertargets()