---
title: "Get secret"
method: GET
path: "/secrets/{namespace}/{name}"
tags: ["secrets"]
---

# Get secret

`GET /secrets/{namespace}/{name}`

Returns the current state of a specific secret identified by namespace and name. This endpoint is intended for retrieving the secret state before updating it.

## Path parameters

- `namespace` string, required
- `name` string, required

## Response `200`

Successful secret response

- ApiSecretEnvelope
  - `data` SecretsSecretUpdate, required
    - `contents` SecretsSecretData, required
    - `immutable` boolean, required
    - `type` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Secret not found
- `422` — Unprocessable Entity. Validation error.
- `500` — Internal server error

---

[API](https://skmtc.dev/opendatahub-io/apis/kubeflow-notebooks-api.md) · [All operations](https://skmtc.dev/opendatahub-io/apis/kubeflow-notebooks-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/opendatahub-io/kubeflow-notebooks-api/revisions/97fe86faf733/schema)
