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

# List bypass tokens for an environment

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

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

The active tokens valid here: the environment's own and the project-wide
ones. Secrets are never returned. Not paginated: bounded by design, a
project holds at most 100 active tokens (minting more answers 409).

## Path parameters

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

## Response `200`

Every active bypass token valid here (at most 100, newest first)

- ShieldTokenResponse[]
  - `created_at` string, date-time, required
  - `created_by` integer, nullable
  - `environment_id` integer, nullable: The environment it is limited to; `null` for a project-wide token.
  - `id` integer, required
  - `last_used_at` string, date-time, nullable
  - `name` string, required
  - `scope` 'environment' | 'project', required: Which environments a bypass token is valid for.

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