---
title: "List secrets"
method: GET
path: "/api/spaces/{namespace}/{repo}/secrets"
tags: ["spaces"]
---

# List secrets

`GET /api/spaces/{namespace}/{repo}/secrets`

List a Space's secret keys. Values are never returned.

## Path parameters

- `namespace` string, required
- `repo` string, required

## Response `200`

Secret keys indexed by name.

- object

---

[API](https://skmtc.net/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.net/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/huggingface/hub-api-endpoints/versions/dae0cc3790f0/schema)
