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

# List secrets

`GET /v1/secrets`

List secrets. Optional: filter based on secret name and labels.

## Query parameters

- `filter.name_contains` string
- `filter.labels[string]` string
- `filter.scopes` string[]
- `page_token` string
- `page_size` integer

## Response `200`

OK

- ListSecretsResponse — ListSecretsResponse is the response of ListSecrets.
  - `next_page_token` string — Token to retrieve the next page.
  - `secrets` Secret[] — Secrets retrieved.
    - `id` string — Secret identifier.
    - `labels` object — Secret labels.
    - `scopes` Scope[]

## Other responses

- `401` — Unauthenticated.
- `500` — Internal Server Error. Reach out to support.
- `default` — An unexpected error response.

## Changes

- **2025-11-25** `87688d3474c2` — 1 warning, 1 info
  - added the new `SCOPE_AI_GATEWAY` enum value to the `secrets/items/scopes/items/` response property for the response status `200`
  - added the enum value `SCOPE_AI_GATEWAY` to the property `items/` of the `query` request parameter `filter.scopes`
- **2025-09-25** `0ff040c5bf20` — 2 warning, 2 info
  - added the new `SCOPE_AI_AGENT` enum value to the `secrets/items/scopes/items/` response property for the response status `200`
  - added the new `SCOPE_MCP_SERVER` enum value to the `secrets/items/scopes/items/` response property for the response status `200`
  - added the enum value `SCOPE_AI_AGENT` to the property `items/` of the `query` request parameter `filter.scopes`
  - added the enum value `SCOPE_MCP_SERVER` to the property `items/` of the `query` request parameter `filter.scopes`
- **2025-05-27** `dfa71f9d277e` — 3 breaking, 3 info
  - removed the enum value `SCOPE_AI_AGENT` from the property `items/` of the `query` request parameter `filter.scopes`
  - removed the enum value `SCOPE_AI_GATEWAY` from the property `items/` of the `query` request parameter `filter.scopes`
  - removed the enum value `SCOPE_MCP_SERVER` from the property `items/` of the `query` request parameter `filter.scopes`
  - removed the `SCOPE_AI_AGENT` enum value from the `secrets/items/scopes/items/` response property for the response status `200`
  - …2 more

[Change history](https://skmtc.dev/redpanda-data/apis/redpanda-cloud-data-plane-api/changes/v1/secrets/get.md)

---

[API](https://skmtc.dev/redpanda-data/apis/redpanda-cloud-data-plane-api.md) · [All operations](https://skmtc.dev/redpanda-data/apis/redpanda-cloud-data-plane-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/redpanda-data/redpanda-cloud-data-plane-api/revisions/7eef0bcc42e7/schema)
