---
title: "Getall"
method: GET
path: "/pwa/v3/projects/:project_slug/environments/:environment_slug/secrets"
tags: ["Secret"]
---

# Getall

`GET /pwa/v3/projects/:project_slug/environments/:environment_slug/secrets`

## Request

- Base URL: `https://management.stytch.com`
- URL: `https://management.stytch.com/pwa/v3/projects/:project_slug/environments/:environment_slug/secrets`
- Auth: HTTP basic

GetAll retrieves all secrets for an environment.

## Path parameters

- `project_slug` string, required
- `environment_slug` string, required

## Response `200`

Successful response

- PwaSecretV3GetAllResponse: Response type
  - `request_id` string, required
  - `secrets` PwaSecretV3MaskedSecret[], required
    - `secret_id` string, required
    - `last_four` string, required
    - `created_at` string
    - `used_at` string
  - `status_code` integer, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `429`: Too Many Requests
- `500`: Internal server error

---

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