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

# Recent Shield events for an environment

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

## 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/events`
- Auth: HTTP bearer

Newest first. Pass `next_before` back as `before` for older ones.

## Path parameters

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

## Query parameters

- `limit` integer
- `kind` string
- `verdict` string
- `ip` string
- `before` string, date-time

## Response `200`

Recent events

- ShieldEventsResponse
  - `events` ShieldEventResponse[], required
    - `difficulty` integer, nullable
    - `host` string, required
    - `ip` string, required
    - `ja4` string, nullable
    - `kind` string, required: `verdict`, `challenge_issued`, `challenge_solved` or `challenge_failed`.
    - `mode` string, required
    - `node_id` integer, nullable: The worker that saw it; `null` on the control plane.
    - `path` string, required
    - `reasons` string[], required
    - `request_id` string, required
    - `signature` string, nullable
    - `solve_ms` integer, nullable
    - `timestamp` string, date-time, required
    - `user_agent` string, required
    - `verdict` string, required
  - `next_before` string, date-time, nullable: Pass as `before` for the next page; `null` when this one is the last.

## 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/events/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)
