---
title: "GetSecretValue"
method: POST
path: "/gitpod.v1.SecretService/GetSecretValue"
tags: ["gitpod.v1.SecretService"]
---

# GetSecretValue

`POST /gitpod.v1.SecretService/GetSecretValue`

GetSecretValue retrieves the value of a secret
 Only Environments can perform this operation, and only for secrets specified on the EnvironmentSpec.

## Request body

- GitpodV1GetSecretValueRequest
  - `secretId` string, uuid

## Response `200`

Success

- GitpodV1GetSecretValueResponse
  - `value` string

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/27f7bd641de1/schema)
