---
title: "Get Secret Value"
method: GET
path: "/secrets/{secret_name}/value"
tags: ["secrets"]
---

# Get Secret Value

`GET /secrets/{secret_name}/value`

## Request

- Base URL: `https://api.mengi.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mengi.cloud/secrets/{secret_name}/value`
- Auth: none declared

Get a secret's value from OpenBao.

Use deployment_id query param if the secret is deployment-scoped.

## Path parameters

- `secret_name` string, required

## Query parameters

- `deployment_id` string, nullable
- `database_id` string, nullable
- `organization_id` string, uuid, nullable

## Response `200`

Successful Response

- SecretValueResponse
  - `name` string, required
  - `key` string, required
  - `value` string, required
  - `deployment_id` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengi/apis/mengi-cloud.md) · [All operations](https://skmtc.dev/mengi/apis/mengi-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/mengi/apis/mengi-cloud/revisions/4ae9b375cdbb?raw)
