---
title: "Refresh license stats."
method: GET
path: "/licensing/refresh-stats"
tags: ["licensing", "enterprise"]
---

# Refresh license stats.

`GET /licensing/refresh-stats`

## Request

- Base URL: `/api` (relative, and the document’s source URL is not known)
- URL: `/api/licensing/refresh-stats`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

You need to have a permission with action `licensing:read`.

## Response `200`

(empty)

- ActiveUserStats
  - `active_admins_and_editors` integer
  - `active_anonymous_devices` integer
  - `active_users` integer
  - `active_viewers` integer

## Other responses

- `500`: InternalServerError is a general error indicating something went wrong internally.

---

[API](https://skmtc.dev/grafana/apis/grafana-http-api.md) - [All operations](https://skmtc.dev/grafana/apis/grafana-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grafana/apis/grafana-http-api/revisions/df55ba1718ba?raw)
