## GetSecretValue `secrets.get_value(SecretGetValueParams**kwargs) -> SecretGetValueResponse` **post** `/gitpod.v1.SecretService/GetSecretValue` Gets the value of a secret. Only available to environments that are authorized to access the secret. Use this method to: - Retrieve secret values - Access credentials ### Examples - Get secret value: Retrieves the value of a specific secret. ```yaml secretId: "d2c94c27-3b76-4a42-b88c-95a85e392c68" ``` ### Parameters - `secret_id: Optional[str]` ### Returns - `class SecretGetValueResponse: …` - `value: Optional[str]` ### Example ```python import os from gitpod import Gitpod client = Gitpod( bearer_token=os.environ.get("GITPOD_API_KEY"), # This is the default and can be omitted ) response = client.secrets.get_value( secret_id="d2c94c27-3b76-4a42-b88c-95a85e392c68", ) print(response.value) ``` #### Response ```json { "value": "value" } ```