provider Feature flags GET
/api/v2/flag-statuses/{projectKey}/{environmentKey} @utdk/launchdarkly
/api/v2/flag-statuses/{projectKey}/{environmentKey} List feature flag statuses
Get a list of statuses for all feature flags. The status includes the last time the feature flag was requested, as well as a state, which is one of the following:
- `new`: You created the flag fewer than seven days ago and it has never been requested.
- `active`: LaunchDarkly is receiving requests for this flag, but there are either multiple variations configured, or it is toggled off, or there have been changes to configuration in the past seven days.
- `inactive`: You created the feature flag more than seven days ago, and hasn't been requested within the past seven days.
- `launched`: LaunchDarkly is receiving requests for this flag, it is toggled on, there is only one variation configured, and there have been no changes to configuration in the past seven days.
To learn more, read [Flag statuses](https://launchdarkly.com/docs/home/observability/flag-status).
- projectKey path required
- The project key
- string
- environmentKey path required
- The environment 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.
Code snippet
Updates live as you fill in the form above.
TypeScript
import launchdarkly from '@utdk/launchdarkly';
await launchdarkly.getfeatureflagstatuses()