---
title: "List secrets"
method: GET
path: "/api/v1beta/secrets/default/keys"
tags: ["secrets"]
---

# List secrets

`GET /api/v1beta/secrets/default/keys`

Get a list of all secret keys from the default provider

## Response `200`

OK

- PkgApiV1ListSecretsResponse — Response containing a list of secret keys
  - `keys` PkgApiV1SecretKeyResponse[] — List of secret keys
    - `description` string — Optional description of the secret
    - `key` string — Secret key name

## Other responses

- `404` — Not Found - Provider not setup
- `405` — Method Not Allowed - Provider doesn't support listing
- `500` — Internal Server Error

---

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