---
search:
  tags:
    - Secrets
    - GET
seo:
  description: >-
    Returns the decrypted value of a single secret. Prefer this over listing
    with values when… Reference for the GET /secrets/value endpoint in the
    varsafe API.
sidebar:
  label: Read one secret value
  badge: GET
title: Read one secret value
type: openapi-operation
---
Returns the decrypted value of a single secret. Prefer this over listing with values when only one key is needed, so the audit trail records what was actually read.

`GET /secrets/value`

**Responses**

- `200` — Success.
- `400` — The request failed validation. \`field\` names the offending input.
- `401` — No credential was presented, or it is invalid or revoked.
- `403` — The credential is valid but lacks the required scope, role or team access.
- `404` — The resource does not exist, or is not visible to this credential.
- `429` — Rate limited. Retry after the interval named in the response.
- `500` — Unexpected server error. The body never carries internal detail.

Response example, 200:

```json
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  "environment": "string",
  "key": "string",
  "version": 1,
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "value": "string",
  "kind": "literal",
  "dependencies": [
    "string"
  ]
}
```
