---
title: "Look up what Shield says about a client"
method: GET
path: "/projects/{project_id}/environments/{environment_id}/shield/lookup"
tags: ["Shield"]
---

# Look up what Shield says about a client

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

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

Evaluates an address, a JA4 fingerprint or both against the newest stored
snapshot for this project, and says why ("spamhaus_drop (185.93.89.0/24)").

## Path parameters

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

## Query parameters

- `ip` string
- `ja4` string

## Response `200`

Verdict and reasons

- ShieldLookupResponse
  - `action` string, required: `pass`, `log`, `challenge` or `block`: what the lists say.
  - `allowed` boolean, required: An operator allow rule matched: the client passes whatever else it matches.
  - `enforced` boolean, required: Whether this environment acts on the action rather than recording it.
  - `ip` string, nullable
  - `ja4` string, nullable
  - `mode` 'off' | 'log' | 'selective' | 'attack', required: The environment's mode, which decides whether the action is taken.
  - `reasons` string[], required: Why, one line per match: `spamhaus_drop (185.93.89.0/24)`.
  - `snapshot_revision` integer, nullable: The snapshot looked up; `null` when none is stored yet and only the built-in lists apply.

## Other responses

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

## Changes

- **2026-11-09** `12896146b193`: 5 breaking
  - removed the required property `extensions` from the response with the `400` status
  - 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
  - …1 more
- **2026-10-28** `10fa9e6c6f35`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/environments/:environment_id/shield/lookup/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)
