---
title: "Get Secret"
method: GET
path: "/v1/secrets/{id}"
tags: ["Secrets"]
---

# Get Secret

`GET /v1/secrets/{id}`

Get a secret.

## Path parameters

- `id` string, required

## Response `200`

OK

- Secret — Defines the secret resource.
  - `id` string — Secret identifier.
  - `labels` object — Secret labels.
  - `scopes` Scope[]

## Other responses

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

## Changes

- **2025-05-27** `dfa71f9d277e` — 1 warning, 3 info
  - removed the optional property `secret` from the response with the `200` status
  - added the optional property `id` to the response with the `200` status
  - added the optional property `labels` to the response with the `200` status
  - added the optional property `scopes` to the response with the `200` status

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