For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inTry it free
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
  • REST API overview
    • Access Tokens
    • Account Members
    • Account Usage Beta
    • AI Configs
    • Announcements
    • Applications Beta
    • Approvals
    • Approvals Beta
    • Audit Log
    • Code References
    • Contexts
    • Context Settings
    • Custom Roles
    • Data Export Destinations
    • Environments
    • Experiments
    • Feature Flags
    • Feature Flags Beta
    • Flag Import Configurations Beta
    • Flag Links Beta
    • Flag Triggers
    • Follow Flags
    • Holdouts Beta
    • Insights Charts Beta
      • GETGet deployment frequency chart data
      • GETGet flag status chart data
      • GETGet lead time chart data
      • GETGet release frequency chart data
      • GETGet stale flags chart data
    • Insights Deployments Beta
    • Insights Flag Events Beta
    • Insights Pull Requests Beta
    • Insights Repositories Beta
    • Insights Scores Beta
    • Integration Audit Log Subscriptions
    • Integration Delivery Configurations Beta
    • Integrations Beta
    • Layers
    • Metrics
    • Metrics Beta
    • OAuth2 Clients
    • Persistent Store Integrations Beta
    • Projects
    • Relay Proxy Configurations
    • Release Pipelines Beta
    • Releases Beta
    • Scheduled Changes
    • Segments
    • Tags
    • Teams
    • Teams Beta
    • Users
    • Users Beta
    • User Settings
    • Views Beta
    • Webhooks
    • Workflows
    • Workflow Templates
    • Other
Sign inTry it free
LogoLogo
REST API overviewInsights Charts Beta

Get stale flags chart data

GET
/api/v2/engineering-insights/charts/flags/stale
GET
/api/v2/engineering-insights/charts/flags/stale
$curl -G https://app.launchdarkly.com/api/v2/engineering-insights/charts/flags/stale \
> -H "Authorization: <apiKey>" \
> -d projectKey=projectKey \
> -d environmentKey=environmentKey
1{
2 "metadata": {
3 "summary": {},
4 "xAxis": {
5 "unit": "count"
6 },
7 "yAxis": {
8 "unit": "count"
9 },
10 "name": "deploymentFrequency",
11 "metrics": {}
12 },
13 "series": [
14 {
15 "metadata": {
16 "name": "string",
17 "count": 1,
18 "bounds": [
19 {
20 "name": "equal",
21 "value": 100
22 }
23 ]
24 },
25 "data": [
26 {
27 "x": 1617225600000,
28 "y": 100,
29 "values": {}
30 }
31 ]
32 }
33 ]
34}
Get stale flags chart data. Engineering insights displays stale flags data in the [flag health metric view](https://launchdarkly.com/docs/home/observability/flag-health). ### Expanding the chart response LaunchDarkly supports expanding the chart response to include additional fields. To expand the response, append the `expand` query parameter and include the following: * `metrics` includes details on the metrics related to stale flags For example, use `?expand=metrics` to include the `metrics` field in the response. By default, this field is **not** included in the response.
Was this page helpful?
Previous

Insights Deployments Beta

Next
Built with

Get stale flags chart data. Engineering insights displays stale flags data in the flag health metric view.

Expanding the chart response

LaunchDarkly supports expanding the chart response to include additional fields.

To expand the response, append the expand query parameter and include the following:

  • metrics includes details on the metrics related to stale flags

For example, use ?expand=metrics to include the metrics field in the response. By default, this field is not included in the response.

Authentication

Authorizationstring
API Key authentication via header

Query parameters

projectKeystringRequiredformat: "string"
The project key
environmentKeystringRequiredformat: "string"
The environment key
applicationKeystringOptionalformat: "string"
Comma separated list of application keys
groupBystringOptionalformat: "string"

Property to group results by. Options: maintainer

maintainerIdstringOptionalformat: "string"

Comma-separated list of individual maintainers to filter results.

maintainerTeamKeystringOptionalformat: "string"

Comma-separated list of team maintainer keys to filter results.

expandstringOptionalformat: "string"

Options: metrics

Response

Chart response
metadataobject
Metadata for the chart
serieslist of objects
Series data for the chart

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error