v7

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-013764062.2 MB
Admin UI

Get instance information

Enterprise feature

Gets high level information about the usage of this Unleash instance, including user, project, and flag information.

get/api/admin/insights

Query parameters

fromstring
Example:2024-01-01

The beginning of the date range in yyyy-MM-dd format

tostring
Example:2024-01-31

The end of the date range in yyyy-MM-dd format

Response

instanceInsightsSchema

Example response

{
  "userTrends": [
    {
      "date": "2024-01-12T23:59:59.999Z",
      "total": 100,
      "active": 98,
      "inactive": 2
    }
  ],
  "flagTrends": [
    {
      "date": "2024-01-12T23:59:59.999Z",
      "total": 100,
      "active": 98,
      "potentiallyStale": 2
    }
  ],
  "projectFlagTrends": [
    {
      "week": "2024-40",
      "project": "default",
      "health": 50,
      "technicalDebt": 20,
      "timeToProduction": 10,
      "date": "2024-01-12T23:59:59.999Z",
      "total": 100,
      "active": 98,
      "potentiallyStale": 2,
      "users": 30
    }
  ],
  "metricsSummaryTrends": [
    {
      "week": "2024-01",
      "date": "2024-01-12T23:59:59.999Z",
      "project": "default",
      "totalRequests": 50,
      "totalYes": 50,
      "totalNo": 50,
      "totalApps": 50,
      "totalFlags": 50,
      "totalEnvironments": 50
    }
  ],
  "environmentTypeTrends": [
    {
      "date": "2024-01-12T23:59:59.999Z",
      "week": "2024-01",
      "environmentType": "production",
      "totalUpdates": 50
    }
  ],
  "lifecycleTrends": [
    {
      "week": "2024-15",
      "date": "2024-04-12T23:59:59.999Z",
      "newProductionFlags": 5,
      "project": "default"
    }
  ],
  "creationArchiveTrends": [
    {
      "week": "2024-15",
      "date": "2024-04-12T23:59:59.999Z",
      "project": "default",
      "createdFlags": {
        "experiment": 5,
        "release": 2,
        "operational": 1
      },
      "archivedFlags": 3
    }
  ]
}