---
title: "Shield summary for an environment"
method: GET
path: "/projects/{project_id}/environments/{environment_id}/shield/summary"
tags: ["Shield"]
---

# Shield summary for an environment

`GET /projects/{project_id}/environments/{environment_id}/shield/summary`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/environments/{environment_id}/shield/summary`
- Auth: HTTP bearer

The mode the environment runs in and where it is set, requests by verdict
and by source, what `selective` would have blocked or challenged, and
challenge solve times, over the last hour, day or week.

## Path parameters

- `project_id` integer, required
- `environment_id` integer, required

## Query parameters

- `window` '1h' | '24h' | '7d': The window a summary covers.

## Response `200`

Shield summary

- ShieldSummaryResponse
  - `challenges` ShieldChallengeCounts, required: Challenges in the window.
    - `failed` integer, required
    - `issued` integer, required
    - `solved` integer, required
  - `end` string, date-time, required
  - `environment_id` integer, required
  - `mode` 'off' | 'log' | 'selective' | 'attack', required: The mode the environment runs in.
  - `mode_source` 'environment' | 'project', required: Where an environment's mode is set.
  - `project_id` integer, required
  - `project_mode` 'off' | 'log' | 'selective' | 'attack', required: The project's mode, which an inheriting environment runs in.
  - `solve_times` ShieldSolveTimes, required: How long visitors took to solve a challenge (D6).
    - `median_ms` number, double, nullable
    - `p90_ms` number, double, nullable
    - `samples` integer, required
  - `sources` ShieldSourceCount[], required: The sources behind those verdicts, most first (at most 20).
    - `requests` integer, required
    - `source` string, required: The list, rule or signature: `spamhaus_drop`, `operator`, `CVE-2021-41773`.
  - `start` string, date-time, required
  - `storage` string, required: `clickhouse` or `postgres`: where the counts come from.
  - `verdicts` ShieldVerdictCounts, required: Requests in the window with a verdict, from the request log.
    - `block` integer, required
    - `challenge` integer, required
    - `log` integer, required
  - `window` '1h' | '24h' | '7d', required: The window a summary covers.
  - `would_have` ShieldWouldHave, required: Block and challenge verdicts Shield recorded without acting on them: what switching to `selective` would have stopped. The request log's counts less the verdicts events show were acted on, so a window that was partly in `selective` does not count those twice.
    - `blocked` integer, required: Requests with a block verdict that Shield only recorded.
    - `challenged` integer, required: Requests with a challenge verdict that Shield only recorded.

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Project or environment not found
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 4 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-28** `10fa9e6c6f35`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/environments/:environment_id/shield/summary/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
