---
title: "List Zombie (stale) flags for Product"
method: GET
path: "/v1/products/{productId}/staleflags"
tags: ["Zombie (stale) flags"]
---

# List Zombie (stale) flags for Product

`GET /v1/products/{productId}/staleflags`

## Request

- Base URL: `https://api.configcat.com`
- URL: `https://api.configcat.com/v1/products/{productId}/staleflags`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/configcat/apis/configcat-public-management-api/docs/v1/products/:productId/staleflags/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint returns the list of Zombie (stale) flags for a given Product 
and the result can be optionally filtered by various parameters.

## Path parameters

- `productId` string, uuid, required

## Query parameters

- `scope` 'all' | 'watchedByMe'
- `staleFlagAgeDays` integer
- `staleFlagStaleInEnvironmentsType` 'staleInAnyEnvironments' | 'staleInAllEnvironments'
- `ignoredEnvironmentIds` string[]
- `ignoredTagIds` integer[]

## Response `200`

- StaleFlagProductModel
  - `productId` string, uuid, required: Identifier of the Product.
  - `name` string, required: Name of the Product.
  - `configs` StaleFlagConfigModel[], required: Configs that contain stale feature flags.
    - `configId` string, uuid, required: Identifier of the Config.
    - `name` string, required: Name of the Config.
    - `evaluationVersion` 'v1' | 'v2', required: Determines the evaluation version of a Config. Using `v2` enables the new features of Config V2 (https://configcat.com/docs/advanced/config-v2).
    - `hasCodeReferences` boolean, required: Config has code references uploaded.
    - `settings` StaleFlagSettingModel[], required: Stale feature flags.
      - `settingId` integer, required: Identifier of the Feature Flag or Setting.
      - `name` string, required: Name of the Feature Flag or Setting.
      - `key` string, required: Key of the Feature Flag or Setting.
      - `hint` string, nullable, required: Description of the Feature Flag or Setting.
      - `hasCodeReferences` boolean, required: Feature Flag or Setting has code references uploaded.
      - `tags` StaleFlagSettingTagModel[], required: The tags' identifiers attached to the Feature Flag or Setting.
        - `tagId` integer, required
        - `settingTagId` integer, required
      - `settingValues` StaleFlagSettingValueModel[], required: Environment level feature flag stale data.
        - `environmentId` string, uuid, required: Identifier of the Environment.
        - `updatedAt` string, date-time, nullable, required: The last updated date and time when the Feature Flag or Setting.
        - `isStale` boolean, required: Is the feature flag considered stale in the environment.
  - `environments` StaleFlagEnvironmentModel[], required: Environment list.
    - `environmentId` string, uuid, required: Identifier of the Environment.
    - `name` string, required: Name of the Environment.

## Other responses

- `400`: Bad request.
- `404`: Not found.
- `429`: Too many requests. In case of the request rate exceeds the rate limits.

## Changes

- **2025-10-09** `8b8a102e5ed1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/configcat/apis/configcat-public-management-api/changes/v1/products/:productId/staleflags/get.md)

---

[API](https://skmtc.dev/configcat/apis/configcat-public-management-api.md) - [All operations](https://skmtc.dev/configcat/apis/configcat-public-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/configcat/apis/configcat-public-management-api/revisions/0f143561d265?raw)
