---
title: "List Secrets"
method: GET
path: "/api/v1/secrets/"
tags: ["Secrets"]
---

# List Secrets

`GET /api/v1/secrets/`

List global secrets for the authenticated user or a team.

If teamId is provided, returns secrets for that team (requires team membership).
Otherwise, returns the user's personal secrets.

## Query parameters

- `teamId` string, nullable — Filter by team ID
- `offset` integer
- `limit` integer

## Response `200`

Successful Response

- GenericPaginationResponseListSecretResponse
  - `total_count` integer — Total number of items available in the dataset
  - `offset` integer — Number of items to skip before starting to collect the result set
  - `limit` integer — Maximum number of items to return
  - `data` SecretResponse[], required
    - `id` string, required — Unique identifier of the secret
    - `name` string, required — Name of the secret
    - `description` string, nullable — Description of the secret
    - `isFile` boolean — Whether this secret is a file
    - `userId` string, nullable — ID of the owning user
    - `teamId` string, nullable — ID of the owning team
    - `createdAt` string, date-time, required — When the secret was created
    - `updatedAt` string, date-time, required — When the secret was last updated
  - `status` string, nullable — Response status

## Other responses

- `401` — Authorization failed
- `422` — Invalid request data

---

[API](https://skmtc.net/primeintellect/apis/pi-api.md) · [All operations](https://skmtc.net/primeintellect/apis/pi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/primeintellect/pi-api/revisions/3d3868828a78/schema)
