---
title: "GET /api/activity/reports/risk/groups/history/"
method: GET
path: "/api/activity/reports/risk/groups/history/"
tags: ["activity"]
---

# GET /api/activity/reports/risk/groups/history/

`GET /api/activity/reports/risk/groups/history/`

## Request

- Base URL: `https://app.pixiebrix.com`
- URL: `https://app.pixiebrix.com/api/activity/reports/risk/groups/history/`
- Auth: none declared

Return the daily high-risk prevalence snapshots (taken at 00:00 UTC) of the organization's groups with an activity policy assigned, from ``start_date`` through ``end_date``, a fixed 90 days ending today in UTC. Each group's days are sparse and oldest first; a day under five tracked members has a null ``high_risk_percent``. Each day carries the ``model_version`` it was scored with. Optional ``groups`` narrows the rows to those groups. Restricted to organization admins/managers or activity & security report viewers, and gated by both the activity-tracking and risk-scoring flags.

## Query parameters

- `organization` string, uuid, required
- `groups` string[]

## Response `200`

- RiskGroupsHistoryResponse
  - `organization` string, uuid, required
  - `start_date` string, date, required
  - `end_date` string, date, required
  - `groups` object[], required
    - `id` string, uuid, required
    - `name` string, required
    - `days` object[], required
      - `date` string, date, required
      - `tracked_members` integer, required
      - `high_risk_members` integer, required
      - `high_risk_percent` number, nullable, required
      - `model_version` integer, required

## Changes

- **2026-10-03** `c559a36fa75f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pixiebrix/apis/pixiebrix-api/changes/api/activity/reports/risk/groups/history/get.md)

---

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