---
title: "Returns Secret entity"
method: GET
path: "/v1/mesh/control-planes/{cpId}/api/meshes/{mesh}/secrets/{name}"
tags: ["Secret"]
---

# Returns Secret entity

`GET /v1/mesh/control-planes/{cpId}/api/meshes/{mesh}/secrets/{name}`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v1/mesh/control-planes/{cpId}/api/meshes/{mesh}/secrets/{name}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

## Path parameters

- `mesh` string, required
- `name` string, required

## Response `200`

Successful response

- SecretItem
  - `creationTime` string, date-time: Time at which the resource was created
  - `data` string, byte: Value of the secret
  - `labels` object
  - `mesh` string, required
  - `modificationTime` string, date-time: Time at which the resource was updated
  - `name` string, required
  - `type` string, required

## Other responses

- `404`: Not Found

## Changes

- **2026-08-18** `658ffb748f95`: 2 info
  - added the optional property `creationTime` to the response with the `200` status
  - added the optional property `modificationTime` to the response with the `200` status
- **2025-11-06** `5d2b35832e3f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-beta/changes/v1/mesh/control-planes/:cpId/api/meshes/:mesh/secrets/:name/get.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-beta.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-beta/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-beta/revisions/cef0f947e9c9?raw)
