---
title: "Get resources by secret"
method: GET
path: "/v1/secrets/resources"
tags: ["Secrets"]
---

# Get resources by secret

`GET /v1/secrets/resources`

Get resources by secret.

## Query parameters

- `filter.secret_id` string
- `filter.scopes` string[]

## Response `200`

OK

- ListResourcesResponse
  - `resources` ListResourcesResponseResource[]
    - `display_name` string
    - `id` string
    - `type` 'TYPE_PIPELINE' | 'TYPE_CLUSTER' | 'TYPE_MCP_SERVER' | 'TYPE_AI_AGENT'

## Other responses

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

## Changes

- **2025-11-25** `87688d3474c2` — 1 info
  - added the enum value `SCOPE_AI_GATEWAY` to the property `items/` of the `query` request parameter `filter.scopes`
- **2025-11-13** `cdfb1ba96f90` — 2 warning, 4 info
  - deleted the `query` request parameter `filter.scope`
  - removed the optional property `resources_for_secret` from the response with the `200` status
  - api operation id `SecretService_ListResourcesBySecrets` removed and replaced with `SecretService_ListResources`
  - added the new optional `query` request parameter `filter.scopes`
  - …2 more
- **2025-11-10** `f02f6241ef5f` — 1 info
  - endpoint added
- **2025-05-27** `dfa71f9d277e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/redpanda-data/apis/redpanda-cloud-data-plane-api/changes/v1/secrets/resources/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/fe9d8a24ba80/schema)
