---
title: "List user secrets"
method: GET
path: "/api/v2/users/{user}/secrets"
tags: ["Secrets"]
---

# List user secrets

`GET /api/v2/users/{user}/secrets`

## Path parameters

- `user` string, required

## Response `200`

OK

- CodersdkUserSecret[]
  - `created_at` string, date-time
  - `description` string
  - `enabled` boolean — Enabled controls whether the secret is injected into workspaces. Disabled secrets remain visible and editable, but are not added to the agent manifest, so they are not exposed as environment variables or written to secret files.
  - `env_name` string
  - `file_path` string
  - `id` string, uuid
  - `name` string
  - `updated_at` string, date-time

---

[API](https://skmtc.net/coder/apis/coder-api.md) · [All operations](https://skmtc.net/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coder/coder-api/revisions/50a77af44008/schema)
