---
search:
  tags:
    - Secrets
    - GET
seo:
  description: >-
    Lists secrets for a project environment including decrypted values. Every
    call is… Reference for the GET /secrets/with-values endpoint in the varsafe
    API.
sidebar:
  label: List secrets with values
  badge: GET
title: List secrets with values
type: openapi-operation
---
Lists secrets for a project environment including decrypted values. Every call is recorded in the audit trail.

`GET /secrets/with-values`

**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"
    ]
  }
]
```
