---
title: "Get an overview of a project insights."
method: GET
path: "/api/admin/projects/{projectId}/insights"
tags: ["Projects"]
deprecated: true
---

# Get an overview of a project insights.

`GET /api/admin/projects/{projectId}/insights`

> **Deprecated.**

This endpoint returns insights into the specified projects stats, health, lead time for changes, feature types used, members and change requests.

## Path parameters

- `projectId` string, required

## Response `200`

projectInsightsSchema

- ProjectInsightsSchema — A high-level overview of a project insights. It contains information such as project statistics, overall health, types of flags, members overview, change requests overview.
  - `stats` ProjectStatsSchema, required — Statistics for a project, including the average time to production, number of features created, the project activity and more. Stats are divided into current and previous **windows**. - The **current window** is the past 30 days. - The **previous window** is the 30 days **before** the current window (from 60 to 30 days ago)
    - `avgTimeToProdCurrentWindow` number, required — The average time from when a feature was created to when it was enabled in the "production" environment during the current window
    - `createdCurrentWindow` number, required — The number of feature flags created during the current window
    - `createdPastWindow` number, required — The number of feature flags created during the previous window
    - `archivedCurrentWindow` number, required — The number of feature flags that were archived during the current window
    - `archivedPastWindow` number, required — The number of feature flags that were archived during the previous window
    - `projectActivityCurrentWindow` number, required — The number of project events that occurred during the current window
    - `projectActivityPastWindow` number, required — The number of project events that occurred during the previous window
    - `projectMembersAddedCurrentWindow` number, required — The number of members that were added to the project during the current window
  - `health` object, required — Use `technicalDebt` instead. Summary of the project health
    - `rating` integer, required — An indicator of the [project's technical debt](https://docs.getunleash.io/concepts/technical-debt#project-status) on a scale from 0 to 100
    - `activeCount` number, required — The number of active feature flags.
    - `potentiallyStaleCount` number, required — The number of potentially stale feature flags.
    - `staleCount` number, required — The number of stale feature flags.
  - `technicalDebt` object, required — Summary of the projects technical debt
    - `rating` integer, required — An indicator of the [project's technical debt](https://docs.getunleash.io/concepts/technical-debt#project-status) on a scale from 0 to 100
    - `activeCount` number, required — The number of active feature flags.
    - `potentiallyStaleCount` number, required — The number of potentially stale feature flags.
    - `staleCount` number, required — The number of stale feature flags.
  - `leadTime` ProjectDoraMetricsSchema, required — A projects dora metrics
    - `projectAverage` number — The average time it takes a feature flag to be enabled in production. The measurement unit is days.
    - `features` DoraFeaturesSchema[], required — An array of objects containing feature flag name and timeToProduction values. The measurement unit of timeToProduction is days.
      - `name` string, required — The name of a feature flag
      - `timeToProduction` number, required — The average number of days it takes a feature flag to get into production
  - `featureTypeCounts` FeatureTypeCountSchema[], required — The number of features of each type
    - `type` string, required — Type of the flag e.g. experiment, kill-switch, release, operational, permission
    - `count` number, required — Number of feature flags of this type
  - `members` object, required — Active/inactive users summary
    - `currentMembers` number, required — The number of total project members
    - `change` number, required — The change in the number of project members compared to the previous month

## Other responses

- `401` — Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.
- `403` — The provided user credentials are valid, but the user does not have the necessary permissions to perform this operation
- `404` — The requested resource was not found.

---

[API](https://skmtc.net/unleash/apis/unleash-api-3.md) · [All operations](https://skmtc.net/unleash/apis/unleash-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unleash/unleash-api-3/versions/b2c3116e633e/schema)
