Code references

List extinctions

GET
/api/v2/code-refs/extinctions

Get a list of all extinctions. LaunchDarkly creates an extinction event after you remove all code references to a flag. To learn more, read About extinction events.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Query Parameters

repoName?string

Filter results to a specific repository

Formatstring
branchName?string

Filter results to a specific branch. By default, only the default branch will be queried for extinctions.

Formatstring
projKey?string

Filter results to a specific project

Formatstring
flagKey?string

Filter results to a specific flag key

Formatstring
from?integer

Filter results to a specific timeframe based on commit time, expressed as a Unix epoch time in milliseconds. Must be used with to.

Formatint64
to?integer

Filter results to a specific timeframe based on commit time, expressed as a Unix epoch time in milliseconds. Must be used with from.

Formatint64

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/code-refs/extinctions"
{  "_links": {    "property1": {      "href": "string",      "type": "string"    },    "property2": {      "href": "string",      "type": "string"    }  },  "items": {    "property1": [      {        "revision": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",        "message": "Remove flag for launched feature",        "time": "1636558831870",        "flagKey": "enable-feature",        "projKey": "default"      }    ],    "property2": [      {        "revision": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",        "message": "Remove flag for launched feature",        "time": "1636558831870",        "flagKey": "enable-feature",        "projKey": "default"      }    ]  }}