Feature flags

List feature flag statuses

GET
/api/v2/flag-statuses/{projectKey}/{environmentKey}

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.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Path Parameters

projectKey*string

The project key

Formatstring
environmentKey*string

The environment key

Formatstring

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/flag-statuses/string/string"
{  "_links": {    "self": {      "href": "/api/v2/flag-statuses/my-project/my-environment",      "type": "application/json"    }  },  "items": [    {      "name": "inactive",      "lastRequested": "2020-02-05T18:17:01.514Z",      "default": null,      "_links": {        "parent": {          "href": "/api/v2/flags/my-project/my-flag",          "type": "application/json"        },        "self": {          "href": "/api/v2/flag-statuses/my-project/my-flag",          "type": "application/json"        }      }    }  ]}