---
title: "List user secrets"
method: GET
path: "/api/secrets"
tags: ["settings"]
---

# List user secrets

`GET /api/secrets`

[cloud-only] Returns the list of secrets (API keys for third-party services) stored for the authenticated user. Secret values are redacted.

## Response `200`

Secret list

- SecretMeta[]
  - `id` string, required
  - `name` string, required
  - `provider` string — [cloud-only] Provider identifier (e.g., huggingface, civitai).
  - `last_used_at` string, date-time — [cloud-only] When the secret was last used for decryption.
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401` — Unauthorized
- `500` — Internal server error
- `503` — Service unavailable - feature is disabled

## Changes

- **2026-05-22** `09a5075587c8` — 2 info
  - added the non-success response with the status `500`
  - added the non-success response with the status `503`
- **2026-05-08** `c9640fded659` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/secrets/get.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/c4db9e1283df/schema)
