v5

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-02-283466592.5 MB
Feature flags

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 instead of this endpoint. To learn more, read Contexts.

Get a list of user targets on a feature flag that are scheduled for removal.

get/api/v2/flags/{projectKey}/{featureFlagKey}/expiring-user-targets/{environmentKey}

Path parameters

projectKeystring string required

The project key

The project key

environmentKeystring string required

The environment key

The environment key

featureFlagKeystring string required

The feature flag key

The feature flag key

Response

Expiring user target response

_linksobject

The location and content type of related resources

Example response

{
  "items": [
    {
      "_id": "12ab3c45de678910fgh12345",
      "_version": 1,
      "userKey": "example-user-key",
      "targetType": "included",
      "variationId": "ce67d625-a8b9-4fb5-a344-ab909d9d4f4d"
    }
  ]
}